| xj | de81d1d | 2021-11-25 15:01:52 +0800 | [diff] [blame^] | 1 | /*=============================================================================
|
| 2 | ** FileName: function_common.h
|
| 3 | ** Desc: about function test
|
| 4 | ** Author: Warren
|
| 5 | ** Version: V1.0
|
| 6 | ** LastChange: 2021-02-26
|
| 7 | ** History:
|
| 8 | =============================================================================*/
|
| 9 |
|
| 10 |
|
| 11 | #ifndef FUNCTION_COMMON_H
|
| 12 | #define FUNCTION_COMMON_H
|
| 13 |
|
| 14 | #ifdef __cplusplus
|
| 15 | extern "C" {
|
| 16 | #endif
|
| 17 | #include "liblog/liblog.h"
|
| 18 | #include "liblog/lynq_deflog.h"
|
| 19 | #ifdef __cplusplus
|
| 20 | }
|
| 21 | #endif
|
| 22 | typedef enum{
|
| 23 | MENU_INPUT_ERROR=0,
|
| 24 | MODULE_INPUT_ERROR,
|
| 25 | API_INPUT_ERROR,
|
| 26 | INVALID_CMD,
|
| 27 | }COMMAND_ERROR;
|
| 28 | typedef struct {
|
| 29 | char *name; /* User printable name of the function. */
|
| 30 | int (*func)(char **param); /* Function to call to do the job. */
|
| 31 | char *doc;
|
| 32 | } RIL_COMMAND;
|
| 33 | RIL_COMMAND*find_command (char *name,RIL_COMMAND *Class);
|
| 34 |
|
| 35 | void set_timer(int it_interval_sec, int it_interval_usec,int it_value_sec,int it_value_usec);
|
| 36 | int sleep_with_restart(int second);
|
| 37 | int millli_sleep_with_restart(int millisecond);
|
| 38 |
|
| 39 | char* getMenu(char * str,char *argv[]);
|
| 40 | int parseParameters(char *str,char *argv[]);
|
| 41 | //int getParam(char * str,char *argv[]);
|
| 42 | //int removeTage(const int length,char* argv[]);
|
| 43 |
|
| 44 | #endif |