summaryrefslogtreecommitdiff
path: root/client/gatt.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-06-26 12:32:57 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-06-30 12:16:29 +0300
commit0f47058a6ef734385c592051c501335dad587704 (patch)
tree2b4a48b31d8b357550f3e6d7fec99f670c798670 /client/gatt.h
parent21ec1b510550ec3c5ffa535c666326a0031841b8 (diff)
downloadbluez-0f47058a6ef734385c592051c501335dad587704.tar.gz
client: Add register-service command
This adds register-service command which can be used to add GATT services to the application: [bluetooth]# register-service 00001820-0000-1000-8000-00805f9b34fb [NEW] Primary Service /org/bluez/app/service0x8c2610 00001820-0000-1000-8000-00805f9b34fb Internet Protocol Support [/org/bluez/app/service0x8c2610] Primary (yes/no): yes [bluetooth]# register-application [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 00001112-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 00001801-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 0000112d-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 00001800-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 00001820-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 00001200-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb [CHG] Controller 00:1B:DC:07:31:88 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb Note: register-application still has to be called at the end to register with bluetoothd as everything is done with ObjectManager.
Diffstat (limited to 'client/gatt.h')
-rw-r--r--client/gatt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/gatt.h b/client/gatt.h
index 4c9fd5b7d..7f116dff0 100644
--- a/client/gatt.h
+++ b/client/gatt.h
@@ -43,3 +43,6 @@ void gatt_remove_manager(GDBusProxy *proxy);
void gatt_register_app(DBusConnection *conn, GDBusProxy *proxy, wordexp_t *w);
void gatt_unregister_app(DBusConnection *conn, GDBusProxy *proxy);
+
+void gatt_register_service(DBusConnection *conn, GDBusProxy *proxy,
+ wordexp_t *w);