summaryrefslogtreecommitdiff
path: root/mesh/dbus.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-06-10 10:11:19 -0700
committerBrian Gix <brian.gix@intel.com>2020-06-10 10:27:17 -0700
commit65cdf6b22cdf04d0142cb925d7c1d924e6fe6dbd (patch)
treef863ce2bf425b5e1c59d4c88f65aefac9895f606 /mesh/dbus.h
parente5179f9fe59765606e7c806dccab2753e3297c1b (diff)
downloadbluez-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.h1
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);