summaryrefslogtreecommitdiff
path: root/android/bluetooth.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@gmail.com>2013-11-14 13:56:50 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2013-11-14 14:57:56 +0200
commitc060fc6976586d349506952ee6694451fa7ecd5b (patch)
treea6ed6a7868a6af7dd9c914aa99c77e3b17b15ac8 /android/bluetooth.h
parent3419cd2118badcdc8cf63437e4dc4ffbba62b219 (diff)
downloadbluez-c060fc6976586d349506952ee6694451fa7ecd5b.tar.gz
android: Rename adapter.c to bluetooth.c
Match service name that is implemened in that file. This will also keep convention of foo.c and hal-foo.c implementing remote parts of same service.
Diffstat (limited to 'android/bluetooth.h')
-rw-r--r--android/bluetooth.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/android/bluetooth.h b/android/bluetooth.h
new file mode 100644
index 000000000..99bd85fef
--- /dev/null
+++ b/android/bluetooth.h
@@ -0,0 +1,38 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2013 Intel Corporation. All rights reserved.
+ *
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+typedef void (*bt_adapter_ready)(int err, const bdaddr_t *addr);
+bool bt_adapter_start(int index, bt_adapter_ready cb);
+
+typedef void (*bt_adapter_stopped)(void);
+bool bt_adapter_stop(bt_adapter_stopped cb);
+
+void bt_adapter_cleanup(void);
+
+void bt_adapter_handle_cmd(int sk, uint8_t opcode, void *buf, uint16_t len);
+
+bool bt_adapter_register(int sk);
+void bt_adapter_unregister(void);
+
+int bt_adapter_add_record(sdp_record_t *rec, uint8_t svc_hint);
+void bt_adapter_remove_record(uint32_t handle);