test-portal-impl.c (flatpak-1.15.1.tar.xz) | : | test-portal-impl.c (flatpak-1.15.2.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 102 | skipping to change at line 102 | |||
}; | }; | |||
static void | static void | |||
on_bus_acquired (GDBusConnection *connection, | on_bus_acquired (GDBusConnection *connection, | |||
const gchar *name, | const gchar *name, | |||
gpointer user_data) | gpointer user_data) | |||
{ | { | |||
GError *error = NULL; | GError *error = NULL; | |||
guint registration_id; | guint registration_id; | |||
g_debug ("Bus acquired, creating skeleton"); | g_info ("Bus acquired, creating skeleton"); | |||
registration_id = g_dbus_connection_register_object (connection, | registration_id = g_dbus_connection_register_object (connection, | |||
"/org/freedesktop/portal/ desktop", | "/org/freedesktop/portal/ desktop", | |||
(GDBusInterfaceInfo *) &a ccess_interface_info, | (GDBusInterfaceInfo *) &a ccess_interface_info, | |||
&access_vtable, | &access_vtable, | |||
NULL, NULL, &error); | NULL, NULL, &error); | |||
g_assert_true (registration_id != 0); | g_assert_true (registration_id != 0); | |||
} | } | |||
static void | static void | |||
on_name_acquired (GDBusConnection *connection, | on_name_acquired (GDBusConnection *connection, | |||
const gchar *name, | const gchar *name, | |||
gpointer user_data) | gpointer user_data) | |||
{ | { | |||
g_debug ("Name acquired"); | g_info ("Name acquired"); | |||
} | } | |||
static void | static void | |||
on_name_lost (GDBusConnection *connection, | on_name_lost (GDBusConnection *connection, | |||
const gchar *name, | const gchar *name, | |||
gpointer user_data) | gpointer user_data) | |||
{ | { | |||
g_debug ("Name lost"); | g_info ("Name lost"); | |||
} | } | |||
int | int | |||
main (int argc, char *argv[]) | main (int argc, char *argv[]) | |||
{ | { | |||
name_owner_id = g_bus_own_name (G_BUS_TYPE_SESSION, | name_owner_id = g_bus_own_name (G_BUS_TYPE_SESSION, | |||
"org.freedesktop.impl.portal.desktop.test", | "org.freedesktop.impl.portal.desktop.test", | |||
G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT, | G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT, | |||
on_bus_acquired, | on_bus_acquired, | |||
on_name_acquired, | on_name_acquired, | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |