summaryrefslogtreecommitdiff
path: root/android/ipc.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-02-18 16:18:33 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-02-28 15:22:45 +0100
commitd61f3fc72e6d3961bd82cfdd094b586d65ede4bc (patch)
tree6791f58c73adcc8588481a82eaadb077f656eb57 /android/ipc.c
parent3f7daeb0e8ef5301d2c33d10e8036bb5db337d27 (diff)
downloadbluez-d61f3fc72e6d3961bd82cfdd094b586d65ede4bc.tar.gz
android/a2dp: Use common IPC for audio socket
This makes audio HAL to use same code for IPC as BT HAL.
Diffstat (limited to 'android/ipc.c')
-rw-r--r--android/ipc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/android/ipc.c b/android/ipc.c
index fa44e3f4b..6b14bbecf 100644
--- a/android/ipc.c
+++ b/android/ipc.c
@@ -89,7 +89,7 @@ static void ipc_disconnect(struct ipc *ipc, bool in_cleanup)
ipc->disconnect_cb(ipc->disconnect_cb_data);
}
-int ipc_handle_msg(struct service_handler *handlers, size_t max_index,
+static int ipc_handle_msg(struct service_handler *handlers, size_t max_index,
const void *buf, ssize_t len)
{
const struct hal_hdr *msg = buf;
@@ -193,8 +193,8 @@ static gboolean notif_watch_cb(GIOChannel *io, GIOCondition cond,
return FALSE;
}
-GIOChannel *ipc_connect(const char *path, size_t size, GIOFunc connect_cb,
- void *user_data)
+static GIOChannel *ipc_connect(const char *path, size_t size,
+ GIOFunc connect_cb, void *user_data)
{
struct sockaddr_un addr;
GIOCondition cond;
@@ -324,7 +324,7 @@ void ipc_cleanup(struct ipc *ipc)
g_free(ipc);
}
-void ipc_send(int sk, uint8_t service_id, uint8_t opcode, uint16_t len,
+static void ipc_send(int sk, uint8_t service_id, uint8_t opcode, uint16_t len,
void *param, int fd)
{
struct msghdr msg;