mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
Fixed typo and some function namings
This commit is contained in:
parent
e6f51008ec
commit
d57175bae7
@ -1043,7 +1043,7 @@ void bnep_set_required_security_level(gap_security_level_t security_level)
|
|||||||
bnep_security_level = security_level;
|
bnep_security_level = security_level;
|
||||||
}
|
}
|
||||||
|
|
||||||
void bnep_connect2(void * connection, bd_addr_t *addr)
|
void bnep_connect(void * connection, bd_addr_t *addr)
|
||||||
{
|
{
|
||||||
log_info("BNEP_CONNECT addr %s", bd_addr_to_str(*addr));
|
log_info("BNEP_CONNECT addr %s", bd_addr_to_str(*addr));
|
||||||
|
|
||||||
@ -1053,12 +1053,7 @@ void bnep_connect2(void * connection, bd_addr_t *addr)
|
|||||||
bnep_run();
|
bnep_run();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bnep_connect_internal(void * connection, bd_addr_t *addr)
|
void bnep_disconnect(void)
|
||||||
{
|
|
||||||
bnep_connect2(connection, addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
void bnep_disconnect_internal(void)
|
|
||||||
{
|
{
|
||||||
log_info("BNEP_DISCONNECT");
|
log_info("BNEP_DISCONNECT");
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ typedef enum {
|
|||||||
BNEP_CHANNEL_STATE_VAR_SND_CONNECTION_RESPONSE = 1 << 1,
|
BNEP_CHANNEL_STATE_VAR_SND_CONNECTION_RESPONSE = 1 << 1,
|
||||||
BNEP_CHANNEL_STATE_VAR_SND_FILTER_NET_TYPE_RESPONSE = 1 << 2,
|
BNEP_CHANNEL_STATE_VAR_SND_FILTER_NET_TYPE_RESPONSE = 1 << 2,
|
||||||
BNEP_CHANNEL_STATE_VAR_SND_FILTER_MULTI_ADDR_RESPONSE = 1 << 3,
|
BNEP_CHANNEL_STATE_VAR_SND_FILTER_MULTI_ADDR_RESPONSE = 1 << 3,
|
||||||
} RFCOMM_CHANNEL_STATE_VAR;
|
} BNEP_CHANNEL_STATE_VAR;
|
||||||
|
|
||||||
/* network protocol type filter */
|
/* network protocol type filter */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -191,7 +191,7 @@ void bnep_register_packet_handler(void (*handler)(void * connection, uint8_t pac
|
|||||||
uint16_t channel, uint8_t *packet, uint16_t size));
|
uint16_t channel, uint8_t *packet, uint16_t size));
|
||||||
|
|
||||||
// Creates BNEP connection (channel) to a given server on a remote device with baseband address. A new baseband connection will be initiated if necessary.
|
// Creates BNEP connection (channel) to a given server on a remote device with baseband address. A new baseband connection will be initiated if necessary.
|
||||||
void bnep_create_channel_internal(void * connection, bd_addr_t *addr, uint8_t channel);
|
void bnep_connect(void * connection, bd_addr_t *addr);
|
||||||
|
|
||||||
// Disconencts BNEP channel with given identifier.
|
// Disconencts BNEP channel with given identifier.
|
||||||
void bnep_disconnect(uint16_t bnep_cid);
|
void bnep_disconnect(uint16_t bnep_cid);
|
||||||
@ -200,7 +200,7 @@ void bnep_disconnect(uint16_t bnep_cid);
|
|||||||
void bnep_register_service(void * connection, uint16_t service_uuid, uint16_t max_frame_size);
|
void bnep_register_service(void * connection, uint16_t service_uuid, uint16_t max_frame_size);
|
||||||
|
|
||||||
// Unregister BNEP service.
|
// Unregister BNEP service.
|
||||||
void bnep_unregister_service_internal(uint8_t service_channel);
|
void bnep_unregister_service(uint8_t service_channel);
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user