Functions
dbus_common.c File Reference
#include "utils/includes.h"
#include <dbus/dbus.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "dbus_common.h"
#include "dbus_common_i.h"
#include "dbus_new.h"
#include "dbus_old.h"
Include dependency graph for dbus_common.c:

Go to the source code of this file.

Functions

static dbus_bool_t add_timeout (DBusTimeout *timeout, void *data)
static dbus_bool_t add_watch (DBusWatch *watch, void *data)
static void dispatch_data (DBusConnection *con)
static void dispatch_initial_dbus_messages (void *eloop_ctx, void *timeout_ctx)
static int integrate_with_eloop (struct wpas_dbus_priv *priv)
static void process_timeout (void *eloop_ctx, void *sock_ctx)
static void process_wakeup_main (int sig, void *signal_ctx)
static void process_watch (struct wpas_dbus_priv *priv, DBusWatch *watch, eloop_event_type type)
static void process_watch_exception (int sock, void *eloop_ctx, void *sock_ctx)
static void process_watch_read (int sock, void *eloop_ctx, void *sock_ctx)
static void process_watch_write (int sock, void *eloop_ctx, void *sock_ctx)
static void remove_timeout (DBusTimeout *timeout, void *data)
static void remove_watch (DBusWatch *watch, void *data)
static void timeout_toggled (DBusTimeout *timeout, void *data)
static void wakeup_main (void *data)
static void watch_toggled (DBusWatch *watch, void *data)
void wpas_dbus_deinit (struct wpas_dbus_priv *priv)
static void wpas_dbus_deinit_common (struct wpas_dbus_priv *priv)
struct wpas_dbus_privwpas_dbus_init (struct wpa_global *global)
static int wpas_dbus_init_common (struct wpas_dbus_priv *priv)
static int wpas_dbus_init_common_finish (struct wpas_dbus_priv *priv)

Function Documentation

static dbus_bool_t add_timeout ( DBusTimeout *  timeout,
void *  data 
) [static]

Definition at line 170 of file dbus_common.c.

static dbus_bool_t add_watch ( DBusWatch *  watch,
void *  data 
) [static]

Definition at line 105 of file dbus_common.c.

static void dispatch_data ( DBusConnection *  con) [static]

Definition at line 39 of file dbus_common.c.

static void dispatch_initial_dbus_messages ( void *  eloop_ctx,
void *  timeout_ctx 
) [static]

dispatch_initial_dbus_messages - Dispatch initial dbus messages after claiming bus name : the DBusConnection to dispatch on : unused

If clients are quick to notice that service claimed its bus name, there may have been messages that came in before initialization was all finished. Dispatch those here.

Definition at line 57 of file dbus_common.c.

static int integrate_with_eloop ( struct wpas_dbus_priv priv) [static]

integrate_with_eloop - Register our mainloop integration with dbus : connection to the system message bus : a dbus control interface data structure Returns: 0 on success, -1 on failure

Definition at line 243 of file dbus_common.c.

static void process_timeout ( void *  eloop_ctx,
void *  sock_ctx 
) [static]

Definition at line 163 of file dbus_common.c.

static void process_wakeup_main ( int  sig,
void *  signal_ctx 
) [static]

Definition at line 202 of file dbus_common.c.

static void process_watch ( struct wpas_dbus_priv priv,
DBusWatch *  watch,
eloop_event_type  type 
) [static]

Definition at line 64 of file dbus_common.c.

static void process_watch_exception ( int  sock,
void *  eloop_ctx,
void *  sock_ctx 
) [static]

Definition at line 87 of file dbus_common.c.

static void process_watch_read ( int  sock,
void *  eloop_ctx,
void *  sock_ctx 
) [static]

Definition at line 93 of file dbus_common.c.

static void process_watch_write ( int  sock,
void *  eloop_ctx,
void *  sock_ctx 
) [static]

Definition at line 99 of file dbus_common.c.

static void remove_timeout ( DBusTimeout *  timeout,
void *  data 
) [static]

Definition at line 185 of file dbus_common.c.

static void remove_watch ( DBusWatch *  watch,
void *  data 
) [static]

Definition at line 135 of file dbus_common.c.

static void timeout_toggled ( DBusTimeout *  timeout,
void *  data 
) [static]

Definition at line 193 of file dbus_common.c.

static void wakeup_main ( void *  data) [static]

wakeup_main - Attempt to wake our mainloop up : dbus control interface private data

Try to wake up the main eloop so it will process dbus events that may have happened.

Definition at line 227 of file dbus_common.c.

static void watch_toggled ( DBusWatch *  watch,
void *  data 
) [static]

Definition at line 154 of file dbus_common.c.

void wpas_dbus_deinit ( struct wpas_dbus_priv priv)

Definition at line 357 of file dbus_common.c.

static void wpas_dbus_deinit_common ( struct wpas_dbus_priv priv) [static]

Definition at line 304 of file dbus_common.c.

struct wpas_dbus_priv* wpas_dbus_init ( struct wpa_global global) [read]

Definition at line 320 of file dbus_common.c.

static int wpas_dbus_init_common ( struct wpas_dbus_priv priv) [static]

Definition at line 266 of file dbus_common.c.

static int wpas_dbus_init_common_finish ( struct wpas_dbus_priv priv) [static]

Definition at line 285 of file dbus_common.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:40