#ifndef LWIP_HDR_NETIF_WIFICLI_H #define LWIP_HDR_NETIF_WIFICLI_H #include "lwip/opt.h" #include "lwip/netif.h" #include "networkmgr.h" #include "switchWifi.h" #define WIFI_CLI_NETIF_PREFIX_NAME 'w' #define WIFI_CLI_NETIF_NAME 0 typedef UINT32 (* wifiCliOutputFunc)(uint8_t, DlPduBlock *); typedef struct WifiCliUlPkgPendingList_Tag { UINT16 pkgNum; // the total pkg num of the pending list UINT16 rsvd; UlPduBlock *pHead; UlPduBlock *pTail; }WifiCliUlPkgPendingList; /****************************************************************************** * wifi_client_wan_linkup_callback * Description: wifi client wan linkup call back * input: NmWifiCliConfiguration *conf * output: * Comment: * ******************************************************************************/ err_t wifi_client_wan_linkup_callback(NmWifiCliConfiguration *conf); /****************************************************************************** * wifi_client_wan_linkdown_callback * Description: wifi client wan linkdown call back * input: * output: * Comment: * ******************************************************************************/ err_t wifi_client_wan_linkdown_callback(void); /****************************************************************************** * wifi_client_wan_default_route_change_callback * Description: wifi client wan default route change call back * input: * output: * Comment: * ******************************************************************************/ err_t wifi_client_wan_default_route_change_callback(NmWanNetDefaultChangeInfo *pInfo); /****************************************************************************** * wifi_cli_ul_listinput * Description: wifi cli send pkg to lwip * input: * output: * Comment: * ******************************************************************************/ void wifi_cli_ul_listinput(UINT16 pkgNum, UlPduBlock *pHead, UlPduBlock *pTail); /****************************************************************************** * wifi_cli_output_set_cust_func * Description: wifi cli output func set by cust * input: * output: * Comment: * ******************************************************************************/ void wifi_cli_output_set_cust_func(BOOL isRegister, wifiCliOutputFunc custOutPutFunc); #endif