summaryrefslogtreecommitdiff
path: root/android/bas.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-06-27 21:08:54 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-06-29 14:52:36 +0200
commit2467040f4267843537efa82a86a84a4aeb18189a (patch)
treefb1f75f775a366c19d49773d6222d996e5208229 /android/bas.h
parent3f3e1c02edb6ace63aa39a98062a0c36682b233d (diff)
downloadbluez-2467040f4267843537efa82a86a84a4aeb18189a.tar.gz
android: Add initial implementation of Battery Service client
Diffstat (limited to 'android/bas.h')
-rw-r--r--android/bas.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/android/bas.h b/android/bas.h
new file mode 100644
index 000000000..3e175b5b5
--- /dev/null
+++ b/android/bas.h
@@ -0,0 +1,32 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2014 Intel Corporation. All rights reserved.
+ *
+ *
+ * This library is free software; you can rebastribute 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 bastributed 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.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+struct bt_bas;
+
+struct bt_bas *bt_bas_new(void *primary);
+
+struct bt_bas *bt_bas_ref(struct bt_bas *bas);
+void bt_bas_unref(struct bt_bas *bas);
+
+bool bt_bas_attach(struct bt_bas *bas, void *gatt);
+void bt_bas_detach(struct bt_bas *bas);