diff options
author | Laurent Bigonville <bigon@bigon.be> | 2018-03-05 22:30:44 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-03-06 12:38:29 +0000 |
commit | 8a4e07925c54eac83878c39313f44fe87d6c3538 (patch) | |
tree | eef30b2e966d3fa81fa0ac0de6db6b5486cbce96 /dbus/dbus-watch.h | |
parent | dd9f24794b875eabc8d4dd8a123691785136aad7 (diff) | |
download | dbus-8a4e07925c54eac83878c39313f44fe87d6c3538.tar.gz |
Add _dbus_clear_loop and _dbus_clear_watch
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92831
[smcv: Fix variable names]
Reviewed-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus/dbus-watch.h')
-rw-r--r-- | dbus/dbus-watch.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dbus/dbus-watch.h b/dbus/dbus-watch.h index 8d8bbf2b..05d9b20e 100644 --- a/dbus/dbus-watch.h +++ b/dbus/dbus-watch.h @@ -99,6 +99,13 @@ DBusSocket _dbus_watch_get_socket (DBusWatch *watch); DBUS_PRIVATE_EXPORT DBusPollable _dbus_watch_get_pollable (DBusWatch *watch); +static inline void +_dbus_clear_watch (DBusWatch **pointer_to_watch) +{ + _dbus_clear_pointer_impl (DBusWatch, pointer_to_watch, + _dbus_watch_unref); +} + /** @} */ DBUS_END_DECLS |