You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
791 B
22 lines
791 B
/*******************************************************************************
|
|
* L2CAP Socket Interface
|
|
******************************************************************************/
|
|
|
|
#ifndef BTIF_SOCK_L2CAP_H
|
|
#define BTIF_SOCK_L2CAP_H
|
|
|
|
#include "btif_uid.h"
|
|
|
|
#include <hardware/bluetooth.h>
|
|
|
|
bt_status_t btsock_l2cap_init(int handle, uid_set_t* set);
|
|
bt_status_t btsock_l2cap_cleanup();
|
|
bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd,
|
|
int flags, int app_uid);
|
|
bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel,
|
|
int* sock_fd, int flags, int app_uid);
|
|
void btsock_l2cap_signaled(int fd, int flags, uint32_t user_id);
|
|
void on_l2cap_psm_assigned(int id, int psm);
|
|
|
|
#endif
|