mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-20 01:20:53 +02:00
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>
This commit is contained in:
parent
dd9f24794b
commit
8a4e07925c
2 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue