Lines Matching refs:hdl

24     netmgr_hdl_t hdl;  member
76 cur->hdl = fd; in add_hdl_info()
119 return cur->hdl; in get_hdl_by_name()
125 netmgr_type_t get_hdl_type(netmgr_hdl_t hdl) in get_hdl_type() argument
131 if(cur->hdl == hdl) { in get_hdl_type()
178 netmgr_wifi_deinit(cur->hdl); in netmgr_service_deinit()
181 close(cur->hdl); in netmgr_service_deinit()
228 int netmgr_set_ifconfig(netmgr_hdl_t hdl, netmgr_ifconfig_info_t* info) in netmgr_set_ifconfig() argument
231 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_set_ifconfig()
238 } else if (get_hdl_type(hdl) == NETMGR_TYPE_ETH) { in netmgr_set_ifconfig()
245 int netmgr_get_ifconfig(netmgr_hdl_t hdl, netmgr_ifconfig_info_t* info) in netmgr_get_ifconfig() argument
248 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_get_ifconfig()
257 } else if (get_hdl_type(hdl) == NETMGR_TYPE_ETH) { in netmgr_get_ifconfig()
265 void netmgr_set_auto_reconnect(netmgr_hdl_t hdl, bool enable) in netmgr_set_auto_reconnect() argument
267 if(get_hdl_type(hdl) == NETMGR_TYPE_UNKNOWN) in netmgr_set_auto_reconnect()
269 hdl = netmgr_get_dev(DEV_WIFI_NAME); in netmgr_set_auto_reconnect()
270 if(hdl == -1) in netmgr_set_auto_reconnect()
277 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_set_auto_reconnect()
283 int netmgr_get_config(netmgr_hdl_t hdl, netmgr_config_t* config) in netmgr_get_config() argument
286 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_get_config()
287 return netmgr_wifi_get_config(hdl, &(config->config.wifi_config)); in netmgr_get_config()
293 int netmgr_del_config(netmgr_hdl_t hdl, netmgr_del_config_t* config) in netmgr_del_config() argument
296 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_del_config()
297 return netmgr_wifi_del_config(hdl, config->config.ssid); in netmgr_del_config()
304 netmgr_conn_state_t netmgr_get_state(netmgr_hdl_t hdl) in netmgr_get_state() argument
306 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_get_state()
308 } else if (get_hdl_type(hdl) == NETMGR_TYPE_ETH) { in netmgr_get_state()
315 int netmgr_connect(netmgr_hdl_t hdl, netmgr_connect_params_t* params) in netmgr_connect() argument
318 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_connect()
319 return netmgr_wifi_connect(hdl, &(params->params.wlan_params)); in netmgr_connect()
325 int netmgr_disconnect(netmgr_hdl_t hdl) in netmgr_disconnect() argument
327 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_disconnect()
328 return netmgr_wifi_disconnect(hdl); in netmgr_disconnect()
333 int netmgr_save_config(netmgr_hdl_t hdl) in netmgr_save_config() argument
335 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_save_config()
336 return netmgr_wifi_save_config(hdl); in netmgr_save_config()
341 int netmgr_set_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb) in netmgr_set_msg_cb() argument
343 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_set_msg_cb()
344 netmgr_wifi_set_msg_cb(hdl, cb); in netmgr_set_msg_cb()
350 int netmgr_del_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb) in netmgr_del_msg_cb() argument
352 if(get_hdl_type(hdl) == NETMGR_TYPE_WIFI) { in netmgr_del_msg_cb()
353 netmgr_wifi_del_msg_cb(hdl, cb); in netmgr_del_msg_cb()