30198ee8c1
1. add new example for A2DP and the related btif layer source code is ported 2. modification on osi_alarm_new API to support periodic timer 3. enable macro BTA_AR_INCLUDED, BTA_AV_INCLUDED, BTA_AV_SINK_INCLUDED 4. The A2DP example cannot work and can only be built successfuly
31 lines
675 B
C
31 lines
675 B
C
#ifndef __BTIF_STACK_MANAGER_H__
|
|
#define __BTIF_STACK_MANAGER_H__
|
|
|
|
#include "bt_defs.h"
|
|
|
|
/** Bluetooth Adapter State */
|
|
typedef enum {
|
|
BT_STATE_OFF,
|
|
BT_STATE_ON
|
|
} bt_state_t;
|
|
|
|
/** Bluetooth Interface callbacks */
|
|
|
|
/** Bluetooth Enable/Disable Callback. */
|
|
typedef void (*adapter_state_changed_callback)(bt_state_t state);
|
|
|
|
|
|
/** Bluetooth Device callback structure. */
|
|
typedef struct {
|
|
adapter_state_changed_callback adapter_state_changed_cb;
|
|
} bt_callbacks_t;
|
|
|
|
bt_status_t BTIF_InitStack(bt_callbacks_t *cb);
|
|
|
|
bt_status_t BTIF_EnableStack(void);
|
|
|
|
bt_status_t BTIF_DisableStack(void);
|
|
|
|
bt_status_t BTIF_CleanUpStack(void);
|
|
|
|
#endif /* __BTIF_STACK_MANAGER_H__ */
|