Classes | Defines | Functions
wps_upnp_event.c File Reference
#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"
Include dependency graph for wps_upnp_event.c:

Go to the source code of this file.

Classes

struct  wps_event_

Defines

#define EVENT_DELAY_MSEC   0
#define EVENT_DELAY_SECONDS   0
#define EVENT_TIMEOUT_SEC   30 /* Drop sending event after timeout */
#define MAX_EVENTS_QUEUED   20 /* How far behind queued events */

Functions

int event_add (struct subscription *s, const struct wpabuf *data)
static struct wpabufevent_build_message (struct wps_event_ *e)
static void event_clean (struct wps_event_ *e)
static void event_delete (struct wps_event_ *e)
void event_delete_all (struct subscription *s)
static struct wps_event_event_dequeue (struct subscription *s)
static void event_http_cb (void *ctx, struct http_client *c, enum http_client_event event)
static void event_retry (struct wps_event_ *e, int do_next_address)
void event_send_all_later (struct upnp_wps_device_sm *sm)
static void event_send_all_later_handler (void *eloop_data, void *user_ctx)
static int event_send_start (struct subscription *s)
void event_send_stop_all (struct upnp_wps_device_sm *sm)

Define Documentation

#define EVENT_DELAY_MSEC   0

Definition at line 38 of file wps_upnp_event.c.

#define EVENT_DELAY_SECONDS   0

Definition at line 37 of file wps_upnp_event.c.

#define EVENT_TIMEOUT_SEC   30 /* Drop sending event after timeout */

Definition at line 34 of file wps_upnp_event.c.

#define MAX_EVENTS_QUEUED   20 /* How far behind queued events */

Definition at line 33 of file wps_upnp_event.c.


Function Documentation

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

event_add - Add a new event to a queue : Subscription : Event data (is copied; caller retains ownership) Returns: 0 on success, 1 on error

Definition at line 331 of file wps_upnp_event.c.

static struct wpabuf* event_build_message ( struct wps_event_ e) [static, read]

Definition at line 133 of file wps_upnp_event.c.

static void event_clean ( struct wps_event_ e) [static]

Definition at line 62 of file wps_upnp_event.c.

static void event_delete ( struct wps_event_ e) [static]

Definition at line 74 of file wps_upnp_event.c.

void event_delete_all ( struct subscription s)

Definition at line 96 of file wps_upnp_event.c.

static struct wps_event_* event_dequeue ( struct subscription s) [static, read]

Definition at line 85 of file wps_upnp_event.c.

static void event_http_cb ( void *  ctx,
struct http_client c,
enum http_client_event  event 
) [static]

Definition at line 161 of file wps_upnp_event.c.

static void event_retry ( struct wps_event_ e,
int  do_next_address 
) [static]

event_retry - Called when we had a failure delivering event msg : Event : skip address e.g. on connect fail

Definition at line 113 of file wps_upnp_event.c.

Definition at line 302 of file wps_upnp_event.c.

static void event_send_all_later_handler ( void *  eloop_data,
void *  user_ctx 
) [static]

Definition at line 264 of file wps_upnp_event.c.

static int event_send_start ( struct subscription s) [static]

Definition at line 221 of file wps_upnp_event.c.

void event_send_stop_all ( struct upnp_wps_device_sm sm)

Definition at line 317 of file wps_upnp_event.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:40