Commit 8a4e0792 authored by Laurent Bigonville's avatar Laurent Bigonville Committed by Simon McVittie

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's avatarSimon McVittie <smcv@collabora.com>
parent dd9f2479
......@@ -60,6 +60,13 @@ dbus_bool_t _dbus_loop_dispatch (DBusLoop *loop);
int _dbus_get_oom_wait (void);
void _dbus_wait_for_memory (void);
static inline void
_dbus_clear_loop (DBusLoop **pointer_to_loop)
{
_dbus_clear_pointer_impl (DBusLoop, pointer_to_loop,
_dbus_loop_unref);
}
#endif /* !DOXYGEN_SHOULD_SKIP_THIS */
#endif /* DBUS_MAINLOOP_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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment