summaryrefslogtreecommitdiff
path: root/mesh/dbus.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2018-12-14 13:48:59 -0800
committerBrian Gix <brian.gix@intel.com>2019-01-08 08:26:04 -0800
commit82e5d87fac3f6ca905a3a58ac70549cc7065b062 (patch)
tree52c905c9b9ff254aa24c33a7a01138311bcf4646 /mesh/dbus.h
parente3512c74016071aa15ef8984ca3ebc606053e645 (diff)
downloadbluez-82e5d87fac3f6ca905a3a58ac70549cc7065b062.tar.gz
mesh: Add utilities for DBus support
These files implement helper routines for common D-Bus functionality.
Diffstat (limited to 'mesh/dbus.h')
-rw-r--r--mesh/dbus.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/mesh/dbus.h b/mesh/dbus.h
new file mode 100644
index 000000000..879649452
--- /dev/null
+++ b/mesh/dbus.h
@@ -0,0 +1,33 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2018 Intel Corporation. All rights reserved.
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ */
+
+#define BLUEZ_MESH_PATH "/org/bluez/mesh"
+#define BLUEZ_MESH_SERVICE "org.bluez.mesh"
+
+bool dbus_init(struct l_dbus *dbus);
+struct l_dbus *dbus_get_bus(void);
+bool dbus_append_byte_array(struct l_dbus_message_builder *builder,
+ const uint8_t *data, int len);
+void dbus_append_dict_entry_basic(struct l_dbus_message_builder *builder,
+ const char *key, const char *signature,
+ const void *data);
+bool dbus_match_interface(struct l_dbus_message_iter *interfaces,
+ const char *match);
+struct l_dbus_message *dbus_error(struct l_dbus_message *msg, int err,
+ const char *description);