mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
9a78b88c4a
- 将path_manager和import_export模块的返回值从int/void改为ErrorCode - 在关键操作中添加日志记录,便于调试和错误追踪 - 更新调用代码以检查错误码并记录错误 - 修改运行命令以管理员权限启动程序
20 lines
499 B
C
20 lines
499 B
C
#ifndef PATH_MANAGER_H
|
|
#define PATH_MANAGER_H
|
|
|
|
#include "utils/string_ext.h"
|
|
#include "utils/error_code.h"
|
|
|
|
// 移除列表中指定索引的项
|
|
ErrorCode path_manager_remove_at(StringList *list, int index);
|
|
|
|
// 上移指定索引的项
|
|
ErrorCode path_manager_move_up(StringList *list, int index);
|
|
|
|
// 下移指定索引的项
|
|
ErrorCode path_manager_move_down(StringList *list, int index);
|
|
|
|
// 清理无效和重复的路径
|
|
ErrorCode path_manager_clean(StringList *list);
|
|
|
|
#endif // PATH_MANAGER_H
|