Files
ai-passport/main/profile_protocol.h
T
hex2077 6a7f4e010b chore: 新增大量静态资源、测试桩文件与配置文件,清理旧无用资源
本次提交新增了多种字体、UI图片、音频剪辑等静态资源,添加了测试桩文件与项目配置文件,同时清理了部分已废弃的旧图片与测试桩代码文件。
2026-09-22 00:42:26 +08:00

14 lines
566 B
C

#pragma once
#include "esp_err.h"
#include <stdbool.h>
esp_err_t profile_protocol_init(void);
/* Caller owns returned JSON and must free it. All storage mutations serialized. */
char *profile_protocol_request(const char *request,bool usb);
void profile_protocol_tick(void);
/* UI callers hold LVGL first, then this lock; protocol never takes LVGL. */
bool profile_protocol_lock(void);
void profile_protocol_unlock(void);
esp_err_t profile_protocol_select(unsigned id);
esp_err_t profile_protocol_edit(unsigned id,unsigned revision,unsigned field,const char *text);