From 64c10c6b491f95db28911ebaabf2d8792050f972 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Apr 2015 19:34:36 +0200 Subject: [PATCH] (BT) Cleanups --- apple/iOS/bluetooth/btdynamic.c | 5 +++-- apple/iOS/bluetooth/btpad.c | 2 +- apple/iOS/bluetooth/btpad_queue.c | 2 +- apple/iOS/bluetooth/btstack/btstack.h | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apple/iOS/bluetooth/btdynamic.c b/apple/iOS/bluetooth/btdynamic.c index fb7113ee77..27c4acebac 100644 --- a/apple/iOS/bluetooth/btdynamic.c +++ b/apple/iOS/bluetooth/btdynamic.c @@ -23,6 +23,7 @@ #include "btdynamic.h" #define GRAB(A) {#A, (void**)&A##_ptr} + static struct { const char* name; @@ -107,7 +108,7 @@ bool btstack_try_load(void) return true; } -void btstack_thread_stop() +void btstack_thread_stop(void) { bt_send_cmd_ptr(btstack_set_power_mode_ptr, HCI_POWER_OFF); } @@ -131,7 +132,7 @@ static void btstack_thread_func(void* data) RARCH_LOG("BTstack: Running\n"); CFRunLoopRun(); - + RARCH_LOG("BTstack: Done\n"); CFRunLoopSourceInvalidate(btstack_quit_source); diff --git a/apple/iOS/bluetooth/btpad.c b/apple/iOS/bluetooth/btpad.c index bd566f50c8..7e8e4601df 100644 --- a/apple/iOS/bluetooth/btpad.c +++ b/apple/iOS/bluetooth/btpad.c @@ -57,7 +57,7 @@ static bool inquiry_running; static struct pad_connection g_connections[MAX_USERS]; static void btpad_connection_send_control(void *data, - uint8_t* data_buf, size_t size) + uint8_t* data_buf, size_t size) { struct pad_connection *connection = (struct pad_connection*)data; diff --git a/apple/iOS/bluetooth/btpad_queue.c b/apple/iOS/bluetooth/btpad_queue.c index 2a072c15d6..fa3908ad29 100644 --- a/apple/iOS/bluetooth/btpad_queue.c +++ b/apple/iOS/bluetooth/btpad_queue.c @@ -28,7 +28,7 @@ struct btpad_queue_command { uint8_t on; } btstack_set_power_mode; - + struct { uint16_t handle; diff --git a/apple/iOS/bluetooth/btstack/btstack.h b/apple/iOS/bluetooth/btstack/btstack.h index 8a6d5f85ac..cc680e6f17 100644 --- a/apple/iOS/bluetooth/btstack/btstack.h +++ b/apple/iOS/bluetooth/btstack/btstack.h @@ -72,7 +72,7 @@ int bt_close(void); int bt_send_cmd(const hci_cmd_t *cmd, ...); /* Register packet handler -- channel only valid - * for L2CAP and RFCOMM packets. + for L2CAP and RFCOMM packets. */ btstack_packet_handler_t bt_register_packet_handler( btstack_packet_handler_t handler);