Implement dbus_clear_connection(), etc.
authorSimon McVittie <smcv@collabora.com>
Fri, 21 Jul 2017 18:12:30 +0000 (19:12 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 30 Jul 2017 07:48:43 +0000 (08:48 +0100)
commite13f29cae788ee0d0d16352c9be2d9e14a5a0b3d
treee3bf2e0d7e270c8145f85f74e0f1f5cf8ee6b3f7
parente9974f76a938e155c7d16c913b8cae41ef9cb9fe
Implement dbus_clear_connection(), etc.

These are inspired by GLib's g_clear_pointer() and g_clear_object(),
which in turn is descended from CPython's Py_CLEAR_OBJECT. They should
make our code a lot less repetitive.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101895
dbus/dbus-address.h
dbus/dbus-connection.h
dbus/dbus-hash.h
dbus/dbus-macros.h
dbus/dbus-message-internal.h
dbus/dbus-message.h
dbus/dbus-pending-call.h
dbus/dbus-server.h