wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
wps_upnp_event.c File Reference

UPnP WPS Device - Event processing Copyright (c) 2006-2007 Sony Corporation Copyright (c) 2008-2009 Atheros Communications Copyright (c) 2009-2010, Jouni Malinen j@w1..nosp@m.fi More...

#include "includes.h"
#include <assert.h>
#include "common.h"
#include "eloop.h"
#include "uuid.h"
#include "http_client.h"
#include "wps_defs.h"
#include "wps_upnp.h"
#include "wps_upnp_i.h"

Data Structures

struct  wps_event_
 

Macros

#define MAX_EVENTS_QUEUED   20 /* How far behind queued events */
 
#define MAX_FAILURES   10 /* Drop subscription after this many failures */
 
#define EVENT_DELAY_SECONDS   0
 
#define EVENT_DELAY_MSEC   0
 

Functions

void event_delete_all (struct subscription *s)
 
void event_send_all_later (struct upnp_wps_device_sm *sm)
 
void event_send_stop_all (struct upnp_wps_device_sm *sm)
 
int event_add (struct subscription *s, const struct wpabuf *data, int probereq)
 Add a new event to a queue. More...
 

Detailed Description

UPnP WPS Device - Event processing Copyright (c) 2006-2007 Sony Corporation Copyright (c) 2008-2009 Atheros Communications Copyright (c) 2009-2010, Jouni Malinen j@w1..nosp@m.fi

See wps_upnp.c for more details on licensing and code history.

Function Documentation

int event_add ( struct subscription s,
const struct wpabuf data,
int  probereq 
)

Add a new event to a queue.

Parameters
sSubscription
dataEvent data (is copied; caller retains ownership)
probereqWhether this is a Probe Request event
Returns
0 on success, -1 on error, 1 on max event queue limit reached