mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 19:47:02 +03:00
initial work on a wifi/http configuration module
This commit is contained in:
@@ -13,23 +13,10 @@
|
||||
|
||||
typedef enum { BT_SINK_CONNECTED, BT_SINK_DISCONNECTED, BT_SINK_PLAY, BT_SINK_STOP, BT_SINK_PAUSE,
|
||||
BT_SINK_RATE, BT_SINK_VOLUME, } bt_sink_cmd_t;
|
||||
|
||||
typedef void (*bt_cmd_cb_t)(bt_sink_cmd_t cmd, ...);
|
||||
typedef void (*bt_data_cb_t)(const uint8_t *data, uint32_t len);
|
||||
|
||||
/**
|
||||
* @brief init sink mode (need to be provided)
|
||||
*/
|
||||
void bt_sink_init(bt_cmd_cb_t cmd_cb, bt_data_cb_t data_cb);
|
||||
|
||||
/**
|
||||
* @brief deinit sink mode (need to be provided)
|
||||
*/
|
||||
void bt_sink_deinit(void);
|
||||
|
||||
/**
|
||||
* @brief local command mode (stop, play, volume ...)
|
||||
*/
|
||||
void bt_sink_cmd(bt_sink_cmd_t event, ...);
|
||||
void bt_sink_init(void (*cmd_cb)(bt_sink_cmd_t cmd, ...), void (*data_cb)(const uint8_t *data, uint32_t len));
|
||||
|
||||
#endif /* __BT_APP_SINK_H__*/
|
||||
|
||||
Reference in New Issue
Block a user