summaryrefslogtreecommitdiffstats
path: root/btif/include/btif_sock_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'btif/include/btif_sock_thread.h')
-rw-r--r--btif/include/btif_sock_thread.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/btif/include/btif_sock_thread.h b/btif/include/btif_sock_thread.h
index 1e2fe0c..0f5212f 100644
--- a/btif/include/btif_sock_thread.h
+++ b/btif/include/btif_sock_thread.h
@@ -64,8 +64,10 @@
int btsock_thread_init();
int btsock_thread_add_fd(int handle, int fd, int type, int flags, uint32_t user_id);
int btsock_thread_wakeup(int handle);
+int btsock_thread_post_cmd(int handle, int cmd_type, const unsigned char* cmd_data, int data_size, uint32_t user_id);
typedef void (*btsock_signaled_cb)(int fd, int type, int flags, uint32_t user_id);
-int btsock_thread_create(btsock_signaled_cb callback);
+typedef void (*btsock_cmd_cb)(int cmd_fd, int type, int size, uint32_t user_id);
+int btsock_thread_create(btsock_signaled_cb callback, btsock_cmd_cb cmd_callback);
int btsock_thread_exit(int handle);
#endif