gdbusconnection: Add some ownership annotations

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-09-24 08:58:42 +01:00
parent 310f2c1632
commit a497fdf302

View File

@ -4086,11 +4086,11 @@ typedef struct
ExportedObject *eo; ExportedObject *eo;
guint id; guint id;
gchar *interface_name; gchar *interface_name; /* (owned) */
GDBusInterfaceVTable *vtable; GDBusInterfaceVTable *vtable; /* (owned) */
GDBusInterfaceInfo *interface_info; GDBusInterfaceInfo *interface_info; /* (owned) */
GMainContext *context; GMainContext *context; /* (owned) */
gpointer user_data; gpointer user_data;
GDestroyNotify user_data_free_func; GDestroyNotify user_data_free_func;
} ExportedInterface; } ExportedInterface;
@ -4116,12 +4116,12 @@ exported_interface_free (ExportedInterface *ei)
struct ExportedSubtree struct ExportedSubtree
{ {
guint id; guint id;
gchar *object_path; gchar *object_path; /* (owned) */
GDBusConnection *connection; GDBusConnection *connection; /* (unowned) */
GDBusSubtreeVTable *vtable; GDBusSubtreeVTable *vtable; /* (owned) */
GDBusSubtreeFlags flags; GDBusSubtreeFlags flags;
GMainContext *context; GMainContext *context; /* (owned) */
gpointer user_data; gpointer user_data;
GDestroyNotify user_data_free_func; GDestroyNotify user_data_free_func;
}; };