| //ATCP Service atcmd |
| #ifndef _ATCI_UTIL_H_ |
| #define _ATCI_UTIL_H_ |
| #include "atci_common.h" |
| |
| typedef int (*atci_cmd_handle_func)(char *cmd, int op_mode, int target, |
| char *response); |
| typedef struct atci_cmd_type_s { |
| char *cmd_prefix; |
| atci_target_e target; |
| atci_cmd_handle_func cmd_handle_func; |
| } atci_cmd_type_t; |
| //socket data protocol. |
| typedef struct atci_data_req_s { |
| int request_id; |
| int data_len; |
| void *data; |
| } atci_data_req_t; |
| |
| int atci_cmd_register(atci_cmd_type_t *ptr); |
| atci_cmd_type_t* atci_find_cmd_handler(char *prefix); |
| char* request2RILStr(int request); |
| #endif |