dbus_new.c File Reference

#include "includes.h"
#include "common.h"
#include "wps/wps.h"
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../bss.h"
#include "dbus_new_helpers.h"
#include <dbus/dbus.h>
#include "dbus_dict_helpers.h"
#include "dbus_new.h"
#include "dbus_common.h"
#include "dbus_common_i.h"
Include dependency graph for dbus_new.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void wpas_dbus_signal_bss (struct wpa_supplicant *wpa_s, const char *bss_obj_path, const char *sig_name, int properties)
static void wpas_dbus_signal_bss_added (struct wpa_supplicant *wpa_s, const char *bss_obj_path)
static void wpas_dbus_signal_bss_removed (struct wpa_supplicant *wpa_s, const char *bss_obj_path)
static void wpas_dbus_signal_interface (struct wpa_supplicant *wpa_s, const char *sig_name, int properties)
static void wpas_dbus_signal_interface_added (struct wpa_supplicant *wpa_s)
static void wpas_dbus_signal_interface_removed (struct wpa_supplicant *wpa_s)
void wpas_dbus_signal_scan_done (struct wpa_supplicant *wpa_s, int success)

: blob name

wpas_dbus_signal_blob_removed - Send a blob removed signal : wpa_supplicant network interface data

Notify listeners about removing blob



static struct
wpa_dbus_property_desc 
wpas_dbus_bss_properties []
static struct wpa_dbus_signal_desc wpas_dbus_bss_signals []
static struct wpa_dbus_method_desc wpas_dbus_global_methods []
static struct
wpa_dbus_property_desc 
wpas_dbus_global_properties []
static struct wpa_dbus_signal_desc wpas_dbus_global_signals []
static struct wpa_dbus_method_desc wpas_dbus_interface_methods []
static struct
wpa_dbus_property_desc 
wpas_dbus_interface_properties []
static struct wpa_dbus_signal_desc wpas_dbus_interface_signals []
static struct
wpa_dbus_property_desc 
wpas_dbus_network_properties []
static struct wpa_dbus_signal_desc wpas_dbus_network_signals []
static void wpa_dbus_free (void *ptr)
void wpas_dbus_bss_signal_prop_changed (struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property, unsigned int id)
void wpas_dbus_ctrl_iface_deinit (struct wpas_dbus_priv *iface)
int wpas_dbus_ctrl_iface_init (struct wpas_dbus_priv *priv)
static void wpas_dbus_register (struct wpa_dbus_object_desc *obj_desc, void *priv, WPADBusArgumentFreeFunction priv_free, const struct wpa_dbus_method_desc *methods, const struct wpa_dbus_property_desc *properties, const struct wpa_dbus_signal_desc *signals)
int wpas_dbus_register_bss (struct wpa_supplicant *wpa_s, u8 bssid[ETH_ALEN], unsigned int id)
int wpas_dbus_register_interface (struct wpa_supplicant *wpa_s)
int wpas_dbus_register_network (struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
static void wpas_dbus_signal_blob (struct wpa_supplicant *wpa_s, const char *name, const char *sig_name)
void wpas_dbus_signal_blob_added (struct wpa_supplicant *wpa_s, const char *name)
void wpas_dbus_signal_blob_removed (struct wpa_supplicant *wpa_s, const char *name)
void wpas_dbus_signal_debug_level_changed (struct wpa_global *global)
void wpas_dbus_signal_debug_show_keys_changed (struct wpa_global *global)
void wpas_dbus_signal_debug_timestamp_changed (struct wpa_global *global)
static void wpas_dbus_signal_network (struct wpa_supplicant *wpa_s, int id, const char *sig_name, int properties)
static void wpas_dbus_signal_network_added (struct wpa_supplicant *wpa_s, int id)
void wpas_dbus_signal_network_enabled_changed (struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
static void wpas_dbus_signal_network_removed (struct wpa_supplicant *wpa_s, int id)
void wpas_dbus_signal_network_selected (struct wpa_supplicant *wpa_s, int id)
void wpas_dbus_signal_prop_changed (struct wpa_supplicant *wpa_s, enum wpas_dbus_prop property)
int wpas_dbus_unregister_bss (struct wpa_supplicant *wpa_s, u8 bssid[ETH_ALEN], unsigned int id)
int wpas_dbus_unregister_interface (struct wpa_supplicant *wpa_s)
int wpas_dbus_unregister_network (struct wpa_supplicant *wpa_s, int nid)

Function Documentation

static void wpa_dbus_free ( void *  ptr  )  [static]

Definition at line 964 of file dbus_new.c.

void wpas_dbus_bss_signal_prop_changed ( struct wpa_supplicant wpa_s,
enum wpas_dbus_bss_prop  property,
unsigned int  id 
)

Definition at line 712 of file dbus_new.c.

void wpas_dbus_ctrl_iface_deinit ( struct wpas_dbus_priv iface  ) 

wpas_dbus_ctrl_iface_deinit - Deinitialize dbus ctrl interface for wpa_supplicant : Pointer to dbus private data from wpas_dbus_init()

Deinitialize the dbus control interface that was initialized with wpas_dbus_ctrl_iface_init().

Definition at line 953 of file dbus_new.c.

int wpas_dbus_ctrl_iface_init ( struct wpas_dbus_priv priv  ) 

wpas_dbus_ctrl_iface_init - Initialize dbus control interface : Pointer to global data from wpa_supplicant_init() Returns: 0 on success or -1 on failure

Initialize the dbus control interface for wpa_supplicantand and start receiving commands from external programs over the bus.

Definition at line 914 of file dbus_new.c.

static void wpas_dbus_register ( struct wpa_dbus_object_desc obj_desc,
void *  priv,
WPADBusArgumentFreeFunction  priv_free,
const struct wpa_dbus_method_desc methods,
const struct wpa_dbus_property_desc properties,
const struct wpa_dbus_signal_desc signals 
) [static]

Definition at line 801 of file dbus_new.c.

int wpas_dbus_register_bss ( struct wpa_supplicant wpa_s,
u8  bssid[ETH_ALEN],
unsigned int  id 
)

wpas_dbus_register_bss - Register a scanned BSS with dbus : wpa_supplicant interface structure : scanned network bssid : unique BSS identifier Returns: 0 on success, -1 on failure

Registers BSS representing object with dbus

Definition at line 1213 of file dbus_new.c.

int wpas_dbus_register_interface ( struct wpa_supplicant wpa_s  ) 

Definition at line 1486 of file dbus_new.c.

int wpas_dbus_register_network ( struct wpa_supplicant wpa_s,
struct wpa_ssid ssid 
)

wpas_dbus_register_network - Register a configured network with dbus : wpa_supplicant interface structure : network configuration data Returns: 0 on success, -1 on failure

Registers network representing object with dbus

Definition at line 1004 of file dbus_new.c.

static void wpas_dbus_signal_blob ( struct wpa_supplicant wpa_s,
const char *  name,
const char *  sig_name 
) [static]

Definition at line 237 of file dbus_new.c.

void wpas_dbus_signal_blob_added ( struct wpa_supplicant wpa_s,
const char *  name 
)

Definition at line 271 of file dbus_new.c.

void wpas_dbus_signal_blob_removed ( struct wpa_supplicant wpa_s,
const char *  name 
)

Definition at line 285 of file dbus_new.c.

static void wpas_dbus_signal_bss ( struct wpa_supplicant wpa_s,
const char *  bss_obj_path,
const char *  sig_name,
int  properties 
) [static]

wpas_dbus_signal_blob - Send a BSS related event signal : wpa_supplicant network interface data : BSS object path : signal name - BSSAdded or BSSRemoved : Whether to add second argument with object properties

Notify listeners about event related with BSS

Definition at line 154 of file dbus_new.c.

static void wpas_dbus_signal_bss_added ( struct wpa_supplicant wpa_s,
const char *  bss_obj_path 
) [static]

wpas_dbus_signal_bss_added - Send a BSS added signal : wpa_supplicant network interface data : new BSS object path

Notify listeners about adding new BSS

Definition at line 208 of file dbus_new.c.

static void wpas_dbus_signal_bss_removed ( struct wpa_supplicant wpa_s,
const char *  bss_obj_path 
) [static]

wpas_dbus_signal_bss_removed - Send a BSS removed signal : wpa_supplicant network interface data : BSS object path

Notify listeners about removing BSS

Definition at line 222 of file dbus_new.c.

void wpas_dbus_signal_debug_level_changed ( struct wpa_global global  ) 

wpas_dbus_signal_debug_level_changed - Signals change of debug param : wpa_global structure

Sends ProertyChanged signals informing that debug level has changed.

Definition at line 765 of file dbus_new.c.

void wpas_dbus_signal_debug_show_keys_changed ( struct wpa_global global  ) 

wpas_dbus_signal_debug_show_keys_changed - Signals change of debug param : wpa_global structure

Sends ProertyChanged signals informing that debug show_keys has changed.

Definition at line 793 of file dbus_new.c.

void wpas_dbus_signal_debug_timestamp_changed ( struct wpa_global global  ) 

wpas_dbus_signal_debug_timestamp_changed - Signals change of debug param : wpa_global structure

Sends ProertyChanged signals informing that debug timestamp has changed.

Definition at line 779 of file dbus_new.c.

static void wpas_dbus_signal_interface ( struct wpa_supplicant wpa_s,
const char *  sig_name,
int  properties 
) [static]

wpas_dbus_signal_interface - Send a interface related event signal : wpa_supplicant network interface data : signal name - InterfaceAdded or InterfaceRemoved : Whether to add second argument with object properties

Notify listeners about event related with interface

Definition at line 40 of file dbus_new.c.

static void wpas_dbus_signal_interface_added ( struct wpa_supplicant wpa_s  )  [static]

wpas_dbus_signal_interface_added - Send a interface created signal : wpa_supplicant network interface data

Notify listeners about creating new interface

Definition at line 91 of file dbus_new.c.

static void wpas_dbus_signal_interface_removed ( struct wpa_supplicant wpa_s  )  [static]

wpas_dbus_signal_interface_removed - Send a interface removed signal : wpa_supplicant network interface data

Notify listeners about removing interface

Definition at line 103 of file dbus_new.c.

static void wpas_dbus_signal_network ( struct wpa_supplicant wpa_s,
int  id,
const char *  sig_name,
int  properties 
) [static]

wpas_dbus_signal_network - Send a network related event signal : wpa_supplicant network interface data : new network id : signal name - NetworkAdded, NetworkRemoved or NetworkSelected : determines if add second argument with object properties

Notify listeners about event related with configured network

Definition at line 301 of file dbus_new.c.

static void wpas_dbus_signal_network_added ( struct wpa_supplicant wpa_s,
int  id 
) [static]

wpas_dbus_signal_network_added - Send a network added signal : wpa_supplicant network interface data : new network id

Notify listeners about adding new network

Definition at line 362 of file dbus_new.c.

void wpas_dbus_signal_network_enabled_changed ( struct wpa_supplicant wpa_s,
struct wpa_ssid ssid 
)

wpas_dbus_signal_network_enabled_changed - Signals Enabled property changes : wpa_supplicant network interface data : configured network which Enabled property has changed

Sends PropertyChanged signals containing new value of Enabled property for specified network

Definition at line 404 of file dbus_new.c.

static void wpas_dbus_signal_network_removed ( struct wpa_supplicant wpa_s,
int  id 
) [static]

wpas_dbus_signal_network_removed - Send a network removed signal : wpa_supplicant network interface data : network id

Notify listeners about removing a network

Definition at line 376 of file dbus_new.c.

void wpas_dbus_signal_network_selected ( struct wpa_supplicant wpa_s,
int  id 
)

wpas_dbus_signal_network_selected - Send a network selected signal : wpa_supplicant network interface data : network id

Notify listeners about selecting a network

Definition at line 390 of file dbus_new.c.

void wpas_dbus_signal_prop_changed ( struct wpa_supplicant wpa_s,
enum wpas_dbus_prop  property 
)

Definition at line 662 of file dbus_new.c.

void wpas_dbus_signal_scan_done ( struct wpa_supplicant wpa_s,
int  success 
)

wpas_dbus_signal_scan_done - send scan done signal : wpa_supplicant network interface data : indicates if scanning succeed or failed

Notify listeners about finishing a scan

Definition at line 117 of file dbus_new.c.

int wpas_dbus_unregister_bss ( struct wpa_supplicant wpa_s,
u8  bssid[ETH_ALEN],
unsigned int  id 
)

wpas_dbus_unregister_bss - Unregister a scanned BSS from dbus : wpa_supplicant interface structure : scanned network bssid : unique BSS identifier Returns: 0 on success, -1 on failure

Unregisters BSS representing object from dbus

Definition at line 1173 of file dbus_new.c.

int wpas_dbus_unregister_interface ( struct wpa_supplicant wpa_s  ) 

Definition at line 1536 of file dbus_new.c.

int wpas_dbus_unregister_network ( struct wpa_supplicant wpa_s,
int  nid 
)

wpas_dbus_unregister_network - Unregister a configured network from dbus : wpa_supplicant interface structure : network id Returns: 0 on success, -1 on failure

Unregisters network representing object from dbus

Definition at line 1069 of file dbus_new.c.


Variable Documentation

Definition at line 1098 of file dbus_new.c.

Initial value:
 {
        { "PropertiesChanged", WPAS_DBUS_NEW_IFACE_BSS,
          {
                  { "properties", "a{sv}", ARG_OUT },
                  END_ARGS
          }
        },
        { NULL, NULL, { END_ARGS } }
}

Definition at line 1153 of file dbus_new.c.

Initial value:
 {
        { "CreateInterface", WPAS_DBUS_NEW_INTERFACE,
          (WPADBusMethodHandler) &wpas_dbus_handler_create_interface,
          {
                  { "args", "a{sv}", ARG_IN },
                  { "path", "o", ARG_OUT },
                  END_ARGS
          }
        },
        { "RemoveInterface", WPAS_DBUS_NEW_INTERFACE,
          (WPADBusMethodHandler) &wpas_dbus_handler_remove_interface,
          {
                  { "path", "o", ARG_IN },
                  END_ARGS
          }
        },
        { "GetInterface", WPAS_DBUS_NEW_INTERFACE,
          (WPADBusMethodHandler) &wpas_dbus_handler_get_interface,
          {
                  { "ifname", "s", ARG_IN },
                  { "path", "o", ARG_OUT },
                  END_ARGS
          }
        },
        { NULL, NULL, NULL, { END_ARGS } }
}

Definition at line 826 of file dbus_new.c.

Initial value:
 {
        { "InterfaceAdded", WPAS_DBUS_NEW_INTERFACE,
          {
                  { "path", "o", ARG_OUT },
                  { "properties", "a{sv}", ARG_OUT },
                  END_ARGS
          }
        },
        { "InterfaceRemoved", WPAS_DBUS_NEW_INTERFACE,
          {
                  { "path", "o", ARG_OUT },
                  END_ARGS
          }
        },
        { "PropertiesChanged", WPAS_DBUS_NEW_INTERFACE,
          {
                  { "properties", "a{sv}", ARG_OUT },
                  END_ARGS
          }
        },
        { NULL, NULL, { END_ARGS } }
}

Definition at line 882 of file dbus_new.c.

Definition at line 1272 of file dbus_new.c.

Definition at line 1344 of file dbus_new.c.

Definition at line 1404 of file dbus_new.c.

Initial value:
 {
        { "PropertiesChanged", WPAS_DBUS_NEW_IFACE_NETWORK,
          {
                  { "properties", "a{sv}", ARG_OUT },
                  END_ARGS
          }
        },
        { NULL, NULL, { END_ARGS } }
}

Definition at line 985 of file dbus_new.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:04:17 2013