summaryrefslogtreecommitdiff
path: root/src/gatt-client.h
diff options
context:
space:
mode:
authorArman Uguray <armansito@chromium.org>2014-12-19 13:35:49 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-12-23 12:59:27 -0200
commit2780741f23444558fa153a053bbe52c85c6a27c7 (patch)
tree765ae5f1ebc7e63a6049e8de4004cf988fa360f0 /src/gatt-client.h
parentf5d8ef1c98e22cae07ec63d074092954769d1078 (diff)
downloadbluez-2780741f23444558fa153a053bbe52c85c6a27c7.tar.gz
core/gatt: Introduce gatt-client
This patch introduces src/gatt-client, which will implement the D-Bus API outlined in doc/gatt-api.txt for the GATT client role.
Diffstat (limited to 'src/gatt-client.h')
-rw-r--r--src/gatt-client.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gatt-client.h b/src/gatt-client.h
new file mode 100644
index 000000000..f6da3b07b
--- /dev/null
+++ b/src/gatt-client.h
@@ -0,0 +1,30 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2014 Google Inc.
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ */
+
+struct btd_gatt_client;
+
+struct btd_gatt_client *btd_gatt_client_new(struct btd_device *device);
+void btd_gatt_client_destroy(struct btd_gatt_client *client);
+
+void btd_gatt_client_ready(struct btd_gatt_client *client);
+void btd_gatt_client_service_added(struct btd_gatt_client *client,
+ struct gatt_db_attribute *attrib);
+void btd_gatt_client_service_removed(struct btd_gatt_client *client,
+ struct gatt_db_attribute *attrib);
+void btd_gatt_client_disconnected(struct btd_gatt_client *client);