blob: 42a0c7d109c0cd9627123342d914ffe712fefe5c [file] [log] [blame]
xjde81d1d2021-11-25 15:01:52 +08001/*=============================================================================
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
15extern "C" {
16#endif
17 #include "liblog/liblog.h"
18 #include "liblog/lynq_deflog.h"
19#ifdef __cplusplus
20}
21#endif
22typedef enum{
23 MENU_INPUT_ERROR=0,
24 MODULE_INPUT_ERROR,
25 API_INPUT_ERROR,
26 INVALID_CMD,
27}COMMAND_ERROR;
28typedef 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;
33RIL_COMMAND*find_command (char *name,RIL_COMMAND *Class);
34
35void set_timer(int it_interval_sec, int it_interval_usec,int it_value_sec,int it_value_usec);
36int sleep_with_restart(int second);
37int millli_sleep_with_restart(int millisecond);
38
39char* getMenu(char * str,char *argv[]);
40int parseParameters(char *str,char *argv[]);
41//int getParam(char * str,char *argv[]);
42//int removeTage(const int length,char* argv[]);
43
44#endif