mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
ea3d678d22
refactor(core): 移除未使用的get_app_context函数 refactor(os_env): 修改backup_registry函数以返回错误码并备份到指定目录 refactor(path_manager): 增强路径管理函数的错误处理
19 lines
383 B
C
19 lines
383 B
C
#ifndef APP_CONTEXT_H
|
|
#define APP_CONTEXT_H
|
|
|
|
#include "utils/string_ext.h"
|
|
|
|
// 应用上下文结构体,用于存储应用运行时的状态
|
|
typedef struct {
|
|
StringList sys_paths;
|
|
StringList user_paths;
|
|
} AppContext;
|
|
|
|
// 创建应用上下文
|
|
AppContext* create_app_context(void);
|
|
|
|
// 销毁应用上下文
|
|
void destroy_app_context(AppContext* ctx);
|
|
|
|
#endif // APP_CONTEXT_H
|