1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #pragma once
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- typedef enum { CSPOT_SETUP, CSPOT_DISC, CSPOT_FLUSH, CSPOT_STOP, CSPOT_PLAY, CSPOT_PAUSE, CSPOT_SEEK, CSPOT_TRACK, CSPOT_LOAD,
- CSPOT_VOLUME, CSPOT_VOLUME_UP, CSPOT_VOLUME_DOWN, CSPOT_NEXT, CSPOT_PREV, CSPOT_TOGGLE,
- } cspot_event_t;
-
- typedef bool (*cspot_cmd_cb_t)(cspot_event_t event, ...);
- typedef bool (*cspot_cmd_vcb_t)(cspot_event_t event, va_list args);
- typedef void (*cspot_data_cb_t)(const uint8_t *data, uint32_t len);
- void cspot_sink_init(cspot_cmd_vcb_t cmd_cb, cspot_data_cb_t data_cb);
- #define cspot_sink_deinit()
- void cspot_disconnect(void);
- #ifdef __cplusplus
- }
- #endif
|