blob: df6e813bcef0a412b5b8bf810d597b54fc328d54 [file] [log] [blame]
/******************************************************************************
*(C) Copyright 2015 Marvell International Ltd.
* All Rights Reserved
******************************************************************************/
#ifndef __CHL_MAIN__
#define __CHL_MAIN__
#include "chl_db.h"
#include "chl_ril.h"
#include "chl_ubus.h"
struct chl_conf {
struct chl_pdp *internet;
bool autoconf;
unsigned int ipv6_poll_interval;
unsigned int activation_retries;
};
void chl_close(int id, struct chl_response *rsp);
void chl_open(int id, struct chl_response *rsp);
void chl_get_status(int id, struct chl_response *rsp);
void chl_unregister(int id, struct chl_response *rsp);
void chl_register(struct reg_param *rp, struct chl_reg_response *rsp);
void chl_set_lte_default(struct reg_param *rp, struct chl_response *rsp);
void chl_share_internet(struct reg_param *rp, struct chl_reg_response *rsp);
void chl_add_del_spec_route(int id, char *ip, bool add, struct chl_response *rsp);
void chl_handle_dcl_changed(Ubus_Data_Call_Response *pdps, int num);
void chl_tog_autoconf(void);
void chl_retry_open_all(void);
void chl_close_all(void);
struct chl_conf *chl_get_conf();
#endif