blob: c17cd80c13afe3acbc73580eeb63728b92c8609a [file] [log] [blame]
liubin281ac462023-07-19 14:22:54 +08001/*
2*
3* Data : 2022/11/1 18:27:39
4* Author : LiuBin
5*/
6#ifndef _info_data_H
7#define _info_data_H
8#include "mbtk_type.h"
9#include "mbtk_list.h"
10#include "mbtk_log.h"
11#include "mbtk_utils.h"
12
13#define SOCK_CLIENT_MAX 100
14#define EPOLL_LISTEN_MAX 100
15#define IND_REGISTER_MAX 10
16#define PACK_PROCESS_QUEUE_MAX 20
17
18#define MBTK_APN_PROP "persist.mbtk.apn"
19#define MBTK_LTE_B28_SUPPORT 1
20
21typedef struct
22{
23 int fd;
24
25 uint32 ind_num;
26 uint16 ind_register[IND_REGISTER_MAX];
27} sock_client_info_t;
28
29typedef struct
30{
31 sock_client_info_t *cli_info;
32 void* pack;
33} info_queue_item_t;
34
35typedef struct
36{
37 int cid;
38
39 bool ipv4_valid;
40 uint8 ipv4[20];
41 bool ipv6_valid;
42 uint8 ipv6[50];
43} info_apn_ip_t;
44
45typedef enum {
46 INFO_URC_MSG_RADIO_STATE,
47 INFO_URC_MSG_CGEV,
48 INFO_URC_MSG_NET_CS_REG_STATE,
49 INFO_URC_MSG_NET_PS_REG_STATE,
50 INFO_URC_MSG_CALL_STATE,
51 INFO_URC_MSG_SIM_STATE,
52 INFO_URC_MSG_PDP_STATE,
53 INFO_URC_MSG_SMS_STATE,
54 INFO_URC_MSG_NET_STATE_LOG // Save Network state into file.
55} info_urc_msg_id_enum;
56
57typedef struct {
58 info_urc_msg_id_enum msg;
59
60 void *data;
61 int data_len;
62} info_urc_msg_t;
63
64
65#endif /* _info_data_H */