1 #ifndef __BLUETOOTH_PAN_H__ 2 #define __BLUETOOTH_PAN_H__ 3 4 #include <RkBtBase.h> 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 typedef enum { 11 RK_BT_PAN_CONNECT_FAILED, 12 RK_BT_PAN_CONNECT, 13 RK_BT_PAN_DISCONNECT 14 } RK_BT_PAN_EVENT; 15 16 typedef void (*RK_BT_PAN_EVENT_CALLBACK)(RK_BT_PAN_EVENT event, char *bd_addr); 17 18 void rk_bt_pan_register_event_cb(RK_BT_PAN_EVENT_CALLBACK cb); 19 int rk_bt_pan_open(); 20 int rk_bt_pan_close(); 21 int rk_bt_pan_connect(char *address); 22 int rk_bt_pan_disconnect(char *address); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29