blob: df6e813bcef0a412b5b8bf810d597b54fc328d54 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001
2/******************************************************************************
3*(C) Copyright 2015 Marvell International Ltd.
4* All Rights Reserved
5******************************************************************************/
6
7#ifndef __CHL_MAIN__
8#define __CHL_MAIN__
9
10#include "chl_db.h"
11#include "chl_ril.h"
12#include "chl_ubus.h"
13
14struct chl_conf {
15 struct chl_pdp *internet;
16 bool autoconf;
17 unsigned int ipv6_poll_interval;
18 unsigned int activation_retries;
19};
20
21void chl_close(int id, struct chl_response *rsp);
22void chl_open(int id, struct chl_response *rsp);
23void chl_get_status(int id, struct chl_response *rsp);
24void chl_unregister(int id, struct chl_response *rsp);
25void chl_register(struct reg_param *rp, struct chl_reg_response *rsp);
26void chl_set_lte_default(struct reg_param *rp, struct chl_response *rsp);
27void chl_share_internet(struct reg_param *rp, struct chl_reg_response *rsp);
28void chl_add_del_spec_route(int id, char *ip, bool add, struct chl_response *rsp);
29void chl_handle_dcl_changed(Ubus_Data_Call_Response *pdps, int num);
30void chl_tog_autoconf(void);
31void chl_retry_open_all(void);
32void chl_close_all(void);
33struct chl_conf *chl_get_conf();
34
35#endif