blob: e2338eedb69a4d6690d3309d2378612ba829abaa [file] [log] [blame]
wangyouqiang80487e42024-05-24 15:06:20 +08001#ifndef __MBTK_DATA_CALL_H__
2#define __MBTK_DATA_CALL_H__
3#include <string.h>
4#include <stdlib.h>
5#include <cutils/properties.h>
6#include <fcntl.h>
7#include <unistd.h>
8#include <sys/types.h>
9#include <sys/stat.h>
10#include <arpa/inet.h>
11
12#include "atchannel.h"
13#include "at_tok.h"
14#include "mbtk_log.h"
15#include "mbtk_type.h"
16#include "mbtk_list.h"
17#include "mbtk_utils.h"
18#include "mbtk_info_api.h"
19#include "info_data.h"
20#include "mbtk_str.h"
21
22#define MBTK_QSER_APN_NAME_SIZE 150
23#define DATA_CALL_APN_GET_FD 0x5f6f7f8f
24//#define MBTK_QSER_DATA_CONFIG_FILE "/etc/config/mbtk_data_call_config"
25
26void mbtk_set_default_pdp_state(bool state, int cid);
27int mbtk_check_cid(int cid);
28int mbtk_check_default_pdp_state(int cid);
29int mbtk_qser_route_config(int cid, mbtk_ipv4_info_t *ipv4, mbtk_ipv6_info_t *ipv6);
30int mbtk_qser_apn_del(int cid);
31int mbtk_qser_req_apn_get(void *data, int *data_len, int *cme_err);
32int mbtk_qser_apn_save(mbtk_apn_info_t apn, const uint8 *apn_type, bool state_save);
33int mbtk_strdata_to_apn(const uint8 *str, mbtk_apn_info_t *apn, uint8 *apn_type, mbtk_apn_req_type_enum *req_type);
34void mbtk_qser_apn_init(void);
35#endif