diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-02-18 14:05:14 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-02-28 15:22:45 +0100 |
commit | 5862f2f6a58866e4c4321020e23c082821be3e00 (patch) | |
tree | 7e3123bbb6f8f84cdf86172641d3bef1d6dcad29 /android/test-ipc.c | |
parent | dd1e44fce160c1883d8600ff2816a3403c967b12 (diff) | |
download | bluez-5862f2f6a58866e4c4321020e23c082821be3e00.tar.gz |
android: Add support for registering disconnect callback in IPC
Allow to register callback which is called in case of IPC failure
(eg malformed message) or disconnection. This makes caller responsible
for performing expected action in such case.
Diffstat (limited to 'android/test-ipc.c')
-rw-r--r-- | android/test-ipc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/android/test-ipc.c b/android/test-ipc.c index 054af84e0..9b736a22a 100644 --- a/android/test-ipc.c +++ b/android/test-ipc.c @@ -286,7 +286,7 @@ static void test_init(gconstpointer data) struct context *context = create_context(data); ipc = ipc_init(BLUEZ_HAL_SK_PATH, sizeof(BLUEZ_HAL_SK_PATH), - HAL_SERVICE_ID_MAX); + HAL_SERVICE_ID_MAX, NULL, NULL); g_assert(ipc); @@ -337,7 +337,7 @@ static void test_cmd(gconstpointer data) struct context *context = create_context(data); ipc = ipc_init(BLUEZ_HAL_SK_PATH, sizeof(BLUEZ_HAL_SK_PATH), - HAL_SERVICE_ID_MAX); + HAL_SERVICE_ID_MAX, NULL, NULL); g_assert(ipc); @@ -355,7 +355,7 @@ static void test_cmd_reg(gconstpointer data) const struct test_data *test_data = context->data; ipc = ipc_init(BLUEZ_HAL_SK_PATH, sizeof(BLUEZ_HAL_SK_PATH), - HAL_SERVICE_ID_MAX); + HAL_SERVICE_ID_MAX, NULL, NULL); g_assert(ipc); @@ -375,7 +375,7 @@ static void test_cmd_reg_1(gconstpointer data) struct context *context = create_context(data); ipc = ipc_init(BLUEZ_HAL_SK_PATH, sizeof(BLUEZ_HAL_SK_PATH), - HAL_SERVICE_ID_MAX); + HAL_SERVICE_ID_MAX, NULL, NULL); g_assert(ipc); |