| /*============================================================================= | |
| ** FileName: function_common.h | |
| ** Desc: about function test | |
| ** Author: Warren | |
| ** Version: V1.0 | |
| ** LastChange: 2021-02-26 | |
| ** History: | |
| =============================================================================*/ | |
| #ifndef FUNCTION_COMMON_H | |
| #define FUNCTION_COMMON_H | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| #include "liblog/liblog.h" | |
| #include "liblog/lynq_deflog.h" | |
| #ifdef __cplusplus | |
| } | |
| #endif | |
| typedef enum{ | |
| MENU_INPUT_ERROR=0, | |
| MODULE_INPUT_ERROR, | |
| API_INPUT_ERROR, | |
| INVALID_CMD, | |
| }COMMAND_ERROR; | |
| typedef struct { | |
| char *name; /* User printable name of the function. */ | |
| int (*func)(char **param); /* Function to call to do the job. */ | |
| char *doc; | |
| } RIL_COMMAND; | |
| RIL_COMMAND*find_command (char *name,RIL_COMMAND *Class); | |
| void set_timer(int it_interval_sec, int it_interval_usec,int it_value_sec,int it_value_usec); | |
| int sleep_with_restart(int second); | |
| int millli_sleep_with_restart(int millisecond); | |
| char* getMenu(char * str,char *argv[]); | |
| int parseParameters(char *str,char *argv[]); | |
| //int getParam(char * str,char *argv[]); | |
| //int removeTage(const int length,char* argv[]); | |
| #endif |