Home | History | Annotate | Download | only in wps

Lines Matching defs:sm

183 				  struct upnp_wps_device_sm *sm,
302 static void web_connection_parse_get(struct upnp_wps_device_sm *sm,
317 iface = dl_list_first(&sm->interfaces,
395 format_wps_device_xml(iface, sm, buf);
413 web_process_get_device_info(struct upnp_wps_device_sm *sm,
421 iface = dl_list_first(&sm->interfaces,
466 web_process_put_message(struct upnp_wps_device_sm *sm, char *data,
476 iface = dl_list_first(&sm->interfaces,
504 web_process_put_wlan_response(struct upnp_wps_device_sm *sm, char *data,
583 dl_list_for_each(iface, &sm->interfaces,
593 wpa_printf(MSG_INFO, "WPS UPnP: Fail: sm->ctx->"
617 static struct subscription * find_er(struct upnp_wps_device_sm *sm,
621 dl_list_for_each(s, &sm->subscriptions, struct subscription, list)
629 web_process_set_selected_registrar(struct upnp_wps_device_sm *sm,
641 s = find_er(sm, cli);
650 dl_list_for_each(iface, &sm->interfaces,
848 static void web_connection_parse_post(struct upnp_wps_device_sm *sm,
873 ret = web_process_get_device_info(sm, &reply, &replyname);
875 ret = web_process_put_message(sm, data, &reply, &replyname);
877 ret = web_process_put_wlan_response(sm, data, &reply,
880 ret = web_process_set_selected_registrar(sm, cli, data, &reply,
913 static void web_connection_parse_subscribe(struct upnp_wps_device_sm *sm,
1043 s = subscription_renew(sm, uuid);
1058 s = subscription_start(sm, callback_urls);
1133 static void web_connection_parse_unsubscribe(struct upnp_wps_device_sm *sm,
1217 s = subscription_find(sm, uuid);
1271 struct upnp_wps_device_sm *sm = ctx;
1290 web_connection_parse_get(sm, req, filename);
1293 web_connection_parse_post(sm, cli, req, filename);
1296 web_connection_parse_subscribe(sm, req, filename);
1299 web_connection_parse_unsubscribe(sm, req, filename);
1321 void web_listener_stop(struct upnp_wps_device_sm *sm)
1323 http_server_deinit(sm->web_srv);
1324 sm->web_srv = NULL;
1328 int web_listener_start(struct upnp_wps_device_sm *sm)
1331 addr.s_addr = sm->ip_addr;
1332 sm->web_srv = http_server_init(&addr, -1, web_connection_check_data,
1333 sm);
1334 if (sm->web_srv == NULL) {
1335 web_listener_stop(sm);
1338 sm->web_port = http_server_get_port(sm->web_srv);