diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.com> | 2013-08-23 02:12:46 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2013-08-23 02:14:28 +0200 |
commit | 7f6d7229d8812d985d544cf5dd3636865c5abc81 (patch) | |
tree | b3b5bd0f7440ce72a0befdce0109618b8ce527b5 /dbus/dbus-auth.h | |
parent | 22fc03d274f186a788efbdbe6b6dfcff1ad474df (diff) | |
download | dbus-7f6d7229d8812d985d544cf5dd3636865c5abc81.tar.gz |
Remove refcounting from DBusAuth and DBusAuthorization
Those structs are for DBusTransport internal use, they should not be
referenced outside it.
The transport needs only to allocate memory on initialization and free
it on finalization.
The lifecycle for the two allocated structs is DBusTransport lifecycle
and at DBusTransport's finalization its connection is already
disconnected.
The assumption is that the transport owns a reference for any object the
two structs holds a reference for (particularly DBusConnection)
Bug: http://bugs.freedesktop.org/show_bug.cgi?id=39720
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-auth.h')
-rw-r--r-- | dbus/dbus-auth.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbus/dbus-auth.h b/dbus/dbus-auth.h index 3f178a22..1cf0570a 100644 --- a/dbus/dbus-auth.h +++ b/dbus/dbus-auth.h @@ -45,8 +45,7 @@ typedef enum DBusAuth* _dbus_auth_server_new (const DBusString *guid, DBusAuthorization *authorization); DBusAuth* _dbus_auth_client_new (void); -DBusAuth* _dbus_auth_ref (DBusAuth *auth); -void _dbus_auth_unref (DBusAuth *auth); +void _dbus_auth_free (DBusAuth *auth); dbus_bool_t _dbus_auth_set_mechanisms (DBusAuth *auth, const char **mechanisms); DBusAuthState _dbus_auth_do_work (DBusAuth *auth); |