mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
(BT) Cleanups
This commit is contained in:
parent
4174fc48a2
commit
64c10c6b49
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -28,7 +28,7 @@ struct btpad_queue_command
|
||||
{
|
||||
uint8_t on;
|
||||
} btstack_set_power_mode;
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
uint16_t handle;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user