parent
1d610604a2
commit
509ea0dbe1
@ -49,7 +49,7 @@ librpmostreed_sources = \
|
||||
src/daemon/rpmostreed-os.h \
|
||||
src/daemon/rpmostreed-os.cxx \
|
||||
src/daemon/rpmostreed-os-experimental.h \
|
||||
src/daemon/rpmostreed-os-experimental.c \
|
||||
src/daemon/rpmostreed-os-experimental.cxx \
|
||||
$(NULL)
|
||||
|
||||
dbusconf_DATA = $(srcdir)/src/daemon/org.projectatomic.rpmostree1.conf
|
||||
|
@ -179,15 +179,12 @@ rpmostreed_osexperimental_new (OstreeSysroot *sysroot,
|
||||
OstreeRepo *repo,
|
||||
const char *name)
|
||||
{
|
||||
RpmostreedOSExperimental *obj = NULL;
|
||||
g_autofree char *path = NULL;
|
||||
|
||||
g_return_val_if_fail (OSTREE_IS_SYSROOT (sysroot), NULL);
|
||||
g_return_val_if_fail (name != NULL, NULL);
|
||||
|
||||
path = rpmostreed_generate_object_path (BASE_DBUS_PATH, name, NULL);
|
||||
g_autofree char *path = rpmostreed_generate_object_path (BASE_DBUS_PATH, name, NULL);
|
||||
|
||||
obj = g_object_new (RPMOSTREED_TYPE_OSEXPERIMENTAL, NULL);
|
||||
auto obj = (RpmostreedOSExperimental *)g_object_new (RPMOSTREED_TYPE_OSEXPERIMENTAL, NULL);
|
||||
|
||||
rpmostreed_daemon_publish (rpmostreed_daemon_get (), path, FALSE, obj);
|
||||
|
Loading…
Reference in New Issue
Block a user