diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-06-10 10:11:19 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-06-10 10:27:17 -0700 |
commit | 65cdf6b22cdf04d0142cb925d7c1d924e6fe6dbd (patch) | |
tree | f863ce2bf425b5e1c59d4c88f65aefac9895f606 /mesh/dbus.h | |
parent | e5179f9fe59765606e7c806dccab2753e3297c1b (diff) | |
download | bluez-65cdf6b22cdf04d0142cb925d7c1d924e6fe6dbd.tar.gz |
mesh: Add destroy callback to dbus_send_with_timeout()
This adds a destroy callback as a function parameter to
dbus_send_with_timeout() to allow automatic release of user data
on either reply or timeout.
Diffstat (limited to 'mesh/dbus.h')
-rw-r--r-- | mesh/dbus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/dbus.h b/mesh/dbus.h index aafb85f6b..89d6b1d31 100644 --- a/mesh/dbus.h +++ b/mesh/dbus.h @@ -36,4 +36,5 @@ struct l_dbus_message *dbus_error(struct l_dbus_message *msg, int err, void dbus_send_with_timeout(struct l_dbus *dbus, struct l_dbus_message *msg, l_dbus_message_func_t cb, void *user_data, + l_dbus_destroy_func_t destroy, unsigned int seconds); |