mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
GDBusServer: Make ::new-connection return whether the connection was claimed
Otherwise things probably won't work in a garbage-collected world (consider the trivial GC that never collects garbage). This commit breaks GDBusServer ABI. No known released software is using this code. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -121,7 +121,7 @@ static const GDBusInterfaceVTable interface_vtable =
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
static gboolean
|
||||
on_new_connection (GDBusServer *server,
|
||||
GDBusConnection *connection,
|
||||
gpointer user_data)
|
||||
@@ -152,6 +152,8 @@ on_new_connection (GDBusServer *server,
|
||||
NULL, /* user_data_free_func */
|
||||
NULL); /* GError** */
|
||||
g_assert (registration_id > 0);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user