mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
fix prototypes for fn()
This commit is contained in:
parent
0cb5b9716d
commit
3583331350
@ -253,7 +253,7 @@ static void inquiry_packet_handler (uint8_t packet_type, uint8_t *packet, uint16
|
||||
#ifdef HAVE_STDIO
|
||||
|
||||
// prototypes
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// Testig User Interface
|
||||
static void show_usage(void){
|
||||
|
@ -67,7 +67,7 @@ const char hfp_hf_service_name[] = "BTstack HFP HF Demo";
|
||||
#ifdef HAVE_STDIO
|
||||
static bd_addr_t device_addr = {0xD8,0xBb,0x2C,0xDf,0xF1,0x08};
|
||||
// prototypes
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
#endif
|
||||
static uint16_t handle = -1;
|
||||
static uint8_t codecs[] = {HFP_CODEC_CVSD, HFP_CODEC_MSBC};
|
||||
|
@ -70,8 +70,8 @@ static void hfp_ag_setup_audio_connection(hfp_connection_t * connection);
|
||||
static void hfp_ag_hf_start_ringing(hfp_connection_t * context);
|
||||
|
||||
// public prototypes
|
||||
hfp_generic_status_indicator_t * get_hfp_generic_status_indicators();
|
||||
int get_hfp_generic_status_indicators_nr();
|
||||
hfp_generic_status_indicator_t * get_hfp_generic_status_indicators(void);
|
||||
int get_hfp_generic_status_indicators_nr(void);
|
||||
void set_hfp_generic_status_indicators(hfp_generic_status_indicator_t * indicators, int indicator_nr);
|
||||
void set_hfp_ag_indicators(hfp_ag_indicator_t * indicators, int indicator_nr);
|
||||
int get_hfp_ag_indicators_nr(hfp_connection_t * context);
|
||||
|
@ -71,8 +71,8 @@ static gatt_client_service_t included_services[50];
|
||||
static gatt_client_characteristic_t characteristics[50];
|
||||
static gatt_client_characteristic_descriptor_t descriptors[50];
|
||||
|
||||
void mock_simulate_discover_primary_services_response();
|
||||
void mock_simulate_att_exchange_mtu_response();
|
||||
void mock_simulate_discover_primary_services_response(void);
|
||||
void mock_simulate_att_exchange_mtu_response(void);
|
||||
|
||||
void CHECK_EQUAL_ARRAY(const uint8_t * expected, uint8_t * actual, int size){
|
||||
for (int i=0; i<size; i++){
|
||||
|
@ -26,10 +26,10 @@ static uint8_t connected;
|
||||
static uint8_t advertisement_packet[150];
|
||||
static btstack_packet_callback_registration_t hci_event_callback_registration;
|
||||
|
||||
void mock_simulate_hci_state_working();
|
||||
void mock_simulate_hci_state_working(void);
|
||||
void mock_simulate_command_complete(const hci_cmd_t *cmd);
|
||||
void mock_simulate_scan_response();
|
||||
void mock_simulate_connected();
|
||||
void mock_simulate_scan_response(void);
|
||||
void mock_simulate_connected(void);
|
||||
|
||||
|
||||
void CHECK_EQUAL_ARRAY(const uint8_t * expected, uint8_t * actual, int size){
|
||||
|
@ -200,7 +200,7 @@ static gatt_client_service_t service;
|
||||
static btstack_packet_callback_registration_t hci_event_callback_registration;
|
||||
static btstack_packet_callback_registration_t sm_event_callback_registration;
|
||||
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
///
|
||||
|
||||
static void printUUID(uint8_t * uuid128, uint16_t uuid16){
|
||||
|
@ -118,9 +118,9 @@ static uint16_t client_configuration_handle;
|
||||
|
||||
static uint16_t handle = 0;
|
||||
|
||||
static void app_run();
|
||||
static void show_usage();
|
||||
static void update_advertisements();
|
||||
static void app_run(void);
|
||||
static void show_usage(void);
|
||||
static void update_advertisements(void);
|
||||
|
||||
|
||||
// static bd_addr_t tester_address = {0x00, 0x1B, 0xDC, 0x06, 0x07, 0x5F};
|
||||
|
@ -91,7 +91,7 @@
|
||||
#define ARP_OPERATION_REPLY 2
|
||||
|
||||
// prototypes
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// Configuration for PTS
|
||||
static bd_addr_t pts_addr = {0x00,0x1b,0xDC,0x07,0x32,0xEF};
|
||||
|
@ -65,7 +65,7 @@
|
||||
#include "l2cap.h"
|
||||
#include "stdin_support.h"
|
||||
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// static bd_addr_t remote = {0x04,0x0C,0xCE,0xE4,0x85,0xD3};
|
||||
// static bd_addr_t remote = {0x84, 0x38, 0x35, 0x65, 0xD1, 0x15};
|
||||
|
@ -102,7 +102,7 @@ static hfp_generic_status_indicator_t hf_indicators[] = {
|
||||
|
||||
char cmd;
|
||||
// prototypes
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// GAP INQUIRY
|
||||
|
||||
|
@ -85,7 +85,7 @@ static uint16_t indicators[1] = {0x01};
|
||||
char cmd;
|
||||
|
||||
// prototypes
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// Testig User Interface
|
||||
static void show_usage(void){
|
||||
|
@ -85,7 +85,7 @@ static bd_addr_t current_addr;
|
||||
static char hs_cmd_buffer[100];
|
||||
|
||||
// prototypes
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// Testig User Interface
|
||||
static void show_usage(void){
|
||||
|
@ -59,7 +59,7 @@
|
||||
#include "l2cap.h"
|
||||
#include "stdin_support.h"
|
||||
|
||||
static void show_usage();
|
||||
static void show_usage(void);
|
||||
|
||||
// static bd_addr_t remote = {0x04,0x0C,0xCE,0xE4,0x85,0xD3};
|
||||
static bd_addr_t remote = {0x84, 0x38, 0x35, 0x65, 0xD1, 0x15};
|
||||
|
Loading…
x
Reference in New Issue
Block a user