// // Created by kindring on 2025/12/26. // #ifndef YUNTUNE_APP_MANAGER_H #define YUNTUNE_APP_MANAGER_H #include "esp_err.h" /** * 功放工作模式, 切换aux与蓝牙模式 */ typedef enum { AUDIO_MODE_AUX = 0, AUDIO_MODE_BLE, AUDIO_MODE_MAX } audio_mode_t; // 运行上下文 typedef struct { audio_mode_t audio_mode; char *device_name; bool auto_reconnect; int reconnect_wait_time; int reconnect_max_attempts; char *wifi_ssid; char *wifi_password; char *ap_ssid; char *ap_password; } device_config_t; audio_mode_t next_audio_mode(); esp_err_t init_app(); #endif //YUNTUNE_APP_MANAGER_H