summaryrefslogtreecommitdiff
path: root/android/sco-msg.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-05-12 11:57:00 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-05-13 14:16:51 +0300
commitfed8f328c62d5f8d3566f040de9c53c6ac9ba2e7 (patch)
treebb639ba7f056305076887498066f55595bdee9a5 /android/sco-msg.h
parent99020ec3f6946934819e7fd4674f4e618f36fb4a (diff)
downloadbluez-fed8f328c62d5f8d3566f040de9c53c6ac9ba2e7.tar.gz
android: Add SCO IPC API
SCO API will be used when communicating with SCO HAL.
Diffstat (limited to 'android/sco-msg.h')
-rw-r--r--android/sco-msg.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/android/sco-msg.h b/android/sco-msg.h
new file mode 100644
index 000000000..df0d85884
--- /dev/null
+++ b/android/sco-msg.h
@@ -0,0 +1,36 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2014 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.
+ *
+ * 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
+ *
+ */
+
+static const char BLUEZ_SCO_SK_PATH[] = "\0bluez_sco_socket";
+
+#define SCO_SERVICE_ID 0
+
+#define SCO_STATUS_SUCCESS IPC_STATUS_SUCCESS
+#define SCO_STATUS_FAILED 0x01
+
+#define SCO_OP_STATUS IPC_OP_STATUS
+
+#define SCO_OP_CONNECT 0x01
+struct sco_rsp_connect {
+ uint16_t mtu;
+} __attribute__((packed));