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

Add _dbus_clear_loop and _dbus_clear_watch

[smcv: Fix variable names]
Reviewed-by: Simon McVittie's avatarSimon McVittie <>
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,
#endif /* DBUS_MAINLOOP_H */
......@@ -99,6 +99,13 @@ DBusSocket _dbus_watch_get_socket (DBusWatch *watch);
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,
/** @} */
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