天嵌二次封装库使用手册  V2.1.2
tq_gsm_module_setting.h
浏览该文件的文档.
1 
7 #ifndef LINUX_LIBV2_SOURCE_GSM_TQ_GSM_MODULE_SETTING_H_
8 #define LINUX_LIBV2_SOURCE_GSM_TQ_GSM_MODULE_SETTING_H_
9 
10 // Copyright 2024 广东省天嵌嵌入式技术股份有限公司
11 
12 #include "libhardware.h"
13 // #include "lib/pcre2.h"
14 
15 #ifdef __cplusplus
16 #define GSM_API extern "C"
17 #else
18 #define GSM_API
19 #endif
20 
21 GSM_API CommandNode *tqCreateCommandNode(const char *const command, const char *const pattern);
22 GSM_API void tqFreeCommandNode(CommandNode *const node);
23 
24 GSM_API void tqCommandListPushFront(CommandList *const list, CommandNode *const node);
25 GSM_API void tqCommandListPushBack(CommandList *const list, CommandNode *const node);
26 GSM_API void tqCommandListPopBack(CommandList *const list);
27 GSM_API void tqCommandListPopFront(CommandList *const list);
28 GSM_API CommandNode *tqGetCommandNode(const CommandList *const list, int index);
29 GSM_API int tqInsertCommandNode(CommandList *const list, int index, CommandNode *const insertNode);
30 GSM_API int tqRemoveCommandNode(CommandList *const list, int index);
31 GSM_API void tqFreeCommandList(CommandList *const list);
32 
33 GSM_API ModuleSettingNode *tqCreateModuleSettingNode(const char *const vid, const char *const pid,
34  int nodeNET, int nodeMODEM, int nodeAT);
36 
37 GSM_API void tqModuleSettingListPushFront(ModuleSettingList *const list, ModuleSettingNode *const moduleSettingNode);
38 GSM_API void tqModuleSettingListPushBack(ModuleSettingList *const list, ModuleSettingNode *const moduleSettingNode);
42 GSM_API int tqInsertModuleSettingNode(ModuleSettingList *const list, int index, ModuleSettingNode *const moduleSettingNode);
43 GSM_API int tqRemoveModuleSettingNode(ModuleSettingList *const list, int index);
45 
48 GSM_API int tqSaveGSMConfig(const ModuleSettingList *const list);
49 
50 #endif // LINUX_LIBV2_SOURCE_GSM_TQ_GSM_MODULE_SETTING_H_
GSM_API CommandNode * tqGetCommandNode(const CommandList *const list, int index)
GSM_API void tqFreeModuleSettingNode(ModuleSettingNode *const node)
GSM_API ModuleSettingList * tqCreateDefaultModuleSettingList()
GSM_API void tqModuleSettingListPushBack(ModuleSettingList *const list, ModuleSettingNode *const moduleSettingNode)
GSM_API void tqCommandListPushBack(CommandList *const list, CommandNode *const node)
GSM_API ModuleSettingList * tqGetGSMConfig()
GSM_API void tqCommandListPopFront(CommandList *const list)
GSM_API void tqFreeCommandNode(CommandNode *const node)
GSM_API ModuleSettingNode * tqGetModuleSettingNode(const ModuleSettingList *const list, int index)
GSM_API void tqFreeModuleSettingList(ModuleSettingList *const list)
GSM_API ModuleSettingNode * tqCreateModuleSettingNode(const char *const vid, const char *const pid, int nodeNET, int nodeMODEM, int nodeAT)
#define GSM_API
GSM_API void tqModuleSettingListPopFront(ModuleSettingList *const list)
GSM_API void tqFreeCommandList(CommandList *const list)
GSM_API int tqRemoveModuleSettingNode(ModuleSettingList *const list, int index)
GSM_API CommandNode * tqCreateCommandNode(const char *const command, const char *const pattern)
GSM_API void tqCommandListPushFront(CommandList *const list, CommandNode *const node)
GSM_API int tqInsertModuleSettingNode(ModuleSettingList *const list, int index, ModuleSettingNode *const moduleSettingNode)
GSM_API void tqCommandListPopBack(CommandList *const list)
GSM_API int tqInsertCommandNode(CommandList *const list, int index, CommandNode *const insertNode)
GSM_API void tqModuleSettingListPushFront(ModuleSettingList *const list, ModuleSettingNode *const moduleSettingNode)
GSM_API void tqModuleSettingListPopBack(ModuleSettingList *const list)
GSM_API int tqSaveGSMConfig(const ModuleSettingList *const list)
GSM_API int tqRemoveCommandNode(CommandList *const list, int index)