$search

dbus_new_handlers.c File Reference

#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "eap_peer/eap_methods.h"
#include "eapol_supp/eapol_supp_sm.h"
#include "rsn_supp/wpa.h"
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../driver_i.h"
#include "../notify.h"
#include "../wpas_glue.h"
#include "../bss.h"
#include "../scan.h"
#include "dbus_new_helpers.h"
#include "dbus_new.h"
#include "dbus_new_handlers.h"
#include "dbus_dict_helpers.h"
#include "../../../src/nodes/wpa_supplicant_node.h"
Include dependency graph for dbus_new_handlers.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FREQS_ALLOC_CHUNK   32

Functions

static int cmp_u8s_desc (const void *a, const void *b)
static struct wpa_supplicantget_iface_by_dbus_path (struct wpa_global *global, const char *path)
static DBusMessage * set_network_properties (DBusMessage *message, struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, DBusMessageIter *iter)
static dbus_bool_t should_quote_opt (const char *key)
static DBusMessage * wpas_dbus_error_iface_unknown (DBusMessage *message)
DBusMessage * wpas_dbus_error_invalid_args (DBusMessage *message, const char *arg)
static DBusMessage * wpas_dbus_error_network_unknown (DBusMessage *message)
DBusMessage * wpas_dbus_error_unknown_error (DBusMessage *message, const char *arg)
static DBusMessage * wpas_dbus_get_bss_security_prop (DBusMessage *message, struct wpa_ie_data *ie_data)
static int wpas_dbus_get_scan_channels (DBusMessage *message, DBusMessageIter *var, struct wpa_driver_scan_params *params, DBusMessage **reply)
static int wpas_dbus_get_scan_ies (DBusMessage *message, DBusMessageIter *var, struct wpa_driver_scan_params *params, DBusMessage **reply)
static int wpas_dbus_get_scan_ssids (DBusMessage *message, DBusMessageIter *var, struct wpa_driver_scan_params *params, DBusMessage **reply)
static int wpas_dbus_get_scan_type (DBusMessage *message, DBusMessageIter *var, char **type, DBusMessage **reply)
DBusMessage * wpas_dbus_getter_ap_scan (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_blobs (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_bridge_ifname (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_bss_bssid (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_frequency (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_ies (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_mode (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_privacy (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_rates (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_rsn (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_signal (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_ssid (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bss_wpa (DBusMessage *message, struct bss_handler_args *bss)
DBusMessage * wpas_dbus_getter_bsss (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_capabilities (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_current_bss (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_current_network (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_debug_level (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_getter_debug_show_keys (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_getter_debug_timestamp (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_getter_driver (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_eap_methods (DBusMessage *message, void *nothing)
DBusMessage * wpas_dbus_getter_enabled (DBusMessage *message, struct network_handler_args *net)
DBusMessage * wpas_dbus_getter_ifname (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_interfaces (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_getter_network_properties (DBusMessage *message, struct network_handler_args *net)
DBusMessage * wpas_dbus_getter_networks (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_scanning (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_getter_state (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_add_blob (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_add_network (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_create_interface (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_handler_disconnect (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_get_blob (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_get_interface (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_handler_remove_blob (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_remove_interface (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_handler_remove_network (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_scan (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_handler_select_network (DBusMessage *message, struct wpa_supplicant *wpa_s)
static char * wpas_dbus_new_decompose_object_path (const char *path, char **network, char **bssid)
DBusMessage * wpas_dbus_setter_ap_scan (DBusMessage *message, struct wpa_supplicant *wpa_s)
DBusMessage * wpas_dbus_setter_debug_level (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_setter_debug_show_keys (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_setter_debug_timestamp (DBusMessage *message, struct wpa_global *global)
DBusMessage * wpas_dbus_setter_enabled (DBusMessage *message, struct network_handler_args *net)
DBusMessage * wpas_dbus_setter_network_properties (DBusMessage *message, struct network_handler_args *net)
DBusMessage * wpas_dbus_simple_array_property_getter (DBusMessage *message, const int type, const void *array, size_t array_len)
DBusMessage * wpas_dbus_simple_property_getter (DBusMessage *message, const int type, const void *val)
DBusMessage * wpas_dbus_simple_property_setter (DBusMessage *message, const int type, void *val)

Variables

static const char * debug_strings []
static const char * dont_quote []
int wpa_debug_level
int wpa_debug_show_keys
int wpa_debug_timestamp

Define Documentation

#define FREQS_ALLOC_CHUNK   32

Function Documentation

static int cmp_u8s_desc ( const void *  a,
const void *  b 
) [static]

Definition at line 2539 of file dbus_new_handlers.c.

static struct wpa_supplicant* get_iface_by_dbus_path ( struct wpa_global global,
const char *  path 
) [static, read]

get_iface_by_dbus_path - Get a new network interface : Pointer to global data from wpa_supplicant_init() : Pointer to a dbus object path representing an interface Returns: Pointer to the interface or NULL if not found

Definition at line 203 of file dbus_new_handlers.c.

static DBusMessage* set_network_properties ( DBusMessage *  message,
struct wpa_supplicant wpa_s,
struct wpa_ssid ssid,
DBusMessageIter *  iter 
) [static]

set_network_properties - Set properties of a configured network : Pointer to incoming dbus message : wpa_supplicant structure for a network interface : wpa_ssid structure for a configured network : DBus message iterator containing dictionary of network properties to set. Returns: NULL when succeed or DBus error on failure

Sets network configuration with parameters given id DBus dictionary

Definition at line 227 of file dbus_new_handlers.c.

static dbus_bool_t should_quote_opt ( const char *  key  )  [static]

Definition at line 186 of file dbus_new_handlers.c.

static DBusMessage* wpas_dbus_error_iface_unknown ( DBusMessage *  message  )  [static]

wpas_dbus_error_iface_unknown - Return a new invalid interface error message : Pointer to incoming dbus message this error refers to Returns: A dbus error message

Convenience function to create and return an invalid interface error

Definition at line 134 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_error_invalid_args ( DBusMessage *  message,
const char *  arg 
)

wpas_dbus_error_invalid_args - Return a new InvalidArgs error message : Pointer to incoming dbus message this error refers to Returns: a dbus error message

Convenience function to create and return an invalid options error

Definition at line 164 of file dbus_new_handlers.c.

static DBusMessage* wpas_dbus_error_network_unknown ( DBusMessage *  message  )  [static]

wpas_dbus_error_network_unknown - Return a new NetworkUnknown error message : Pointer to incoming dbus message this error refers to Returns: a dbus error message

Convenience function to create and return an invalid network error

Definition at line 149 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_error_unknown_error ( DBusMessage *  message,
const char *  arg 
)

wpas_dbus_error_unknown_error - Return a new InvalidArgs error message : Pointer to incoming dbus message this error refers to

  • : Optional string appended to error message Returns: a dbus error message

Convenience function to create and return an UnknownError

Definition at line 119 of file dbus_new_handlers.c.

static DBusMessage* wpas_dbus_get_bss_security_prop ( DBusMessage *  message,
struct wpa_ie_data ie_data 
) [static]

Definition at line 2594 of file dbus_new_handlers.c.

static int wpas_dbus_get_scan_channels ( DBusMessage *  message,
DBusMessageIter *  var,
struct wpa_driver_scan_params params,
DBusMessage **  reply 
) [static]

Definition at line 1083 of file dbus_new_handlers.c.

static int wpas_dbus_get_scan_ies ( DBusMessage *  message,
DBusMessageIter *  var,
struct wpa_driver_scan_params params,
DBusMessage **  reply 
) [static]

Definition at line 1019 of file dbus_new_handlers.c.

static int wpas_dbus_get_scan_ssids ( DBusMessage *  message,
DBusMessageIter *  var,
struct wpa_driver_scan_params params,
DBusMessage **  reply 
) [static]

Definition at line 944 of file dbus_new_handlers.c.

static int wpas_dbus_get_scan_type ( DBusMessage *  message,
DBusMessageIter *  var,
char **  type,
DBusMessage **  reply 
) [static]

Definition at line 929 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_ap_scan ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_ap_scan - Control roaming mode : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A message containong value of ap_scan variable

Getter function for "ApScan" property.

Definition at line 2036 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_blobs ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_blobs - Get all blobs defined for this interface : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: a dbus message containing a dictionary of pairs (blob_name, blob)

Getter for "Blobs" property.

Definition at line 2320 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bridge_ifname ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_bridge_ifname - Get interface name : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a name of bridge network interface associated with with wpa_s

Getter for "BridgeIfname" property.

Definition at line 2185 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_bssid ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_bssid - Return the BSSID of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the bssid for the requested bss

Getter for "BSSID" property.

Definition at line 2394 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_frequency ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_frequency - Return the frequency of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the frequency of requested bss

Getter for "Frequency" property.

Definition at line 2523 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_ies ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_ies - Return all IEs of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing IEs byte array

Getter for "IEs" property.

Definition at line 2774 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_mode ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_mode - Return the mode of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the mode of requested bss

Getter for "Mode" property.

Definition at line 2469 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_privacy ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_privacy - Return the privacy flag of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the privacy flag value of requested bss

Getter for "Privacy" property.

Definition at line 2443 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_rates ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_rates - Return available bit rates of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing sorted array of bit rates

Getter for "Rates" property.

Definition at line 2553 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_rsn ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_rsn - Return the RSN options of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the RSN options of requested bss

Getter for "RSN" property.

Definition at line 2744 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_signal ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_level - Return the signal strength of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the signal strength of requested bss

Getter for "Level" property.

Definition at line 2499 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_ssid ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_ssid - Return the SSID of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the ssid for the requested bss

Getter for "SSID" property.

Definition at line 2418 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bss_wpa ( DBusMessage *  message,
struct bss_handler_args bss 
)

wpas_dbus_getter_bss_wpa - Return the WPA options of a BSS : Pointer to incoming dbus message : a pair of interface describing structure and bss's id Returns: a dbus message containing the WPA options of requested bss

Getter for "WPA" property.

Definition at line 2714 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_bsss ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_bsss - Get array of BSSs objects : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: a dbus message containing an array of all known BSS objects dbus paths

Getter for "BSSs" property.

Definition at line 2211 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_capabilities ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_capabilities - Return interface capabilities : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a dict of strings

Getter for "Capabilities" property of an interface.

Definition at line 1670 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_current_bss ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_current_bss - Get current bss object path : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a DBus object path to current BSS

Getter for "CurrentBSS" property.

Definition at line 2125 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_current_network ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_current_network - Get current network object path : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a DBus object path to current network

Getter for "CurrentNetwork" property.

Definition at line 2155 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_debug_level ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_getter_debug_level - Get debug level : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: DBus message with value of debug level

Getter for "DebugLevel" property.

Definition at line 717 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_debug_show_keys ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_getter_debug_show_keys - Get debug show keys : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: DBus message with value of debug show_keys

Getter for "DebugShowKeys" property.

Definition at line 757 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_debug_timestamp ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_getter_debug_timestamp - Get debug timestamp : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: DBus message with value of debug timestamp

Getter for "DebugTimestamp" property.

Definition at line 740 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_driver ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_driver - Get interface name : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a name of network interface driver associated with with wpa_s

Getter for "Driver" property.

Definition at line 2099 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_eap_methods ( DBusMessage *  message,
void *  nothing 
)

wpas_dbus_getter_eap_methods - Request supported EAP methods list : Pointer to incoming dbus message : not used argument. may be NULL or anything else Returns: The object paths array containing supported EAP methods represented by strings or DBus error on failure

Getter for "EapMethods" property. Handles requests by dbus clients to return list of strings with supported EAP methods

Definition at line 906 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_enabled ( DBusMessage *  message,
struct network_handler_args net 
)

wpas_dbus_getter_enabled - Check whether network is enabled or disabled : Pointer to incoming dbus message : wpa_supplicant structure for a network interface and wpa_ssid structure for a configured network Returns: DBus message with boolean indicating state of configured network or DBus error on failure

Getter for "enabled" property of a configured network.

Definition at line 2800 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_ifname ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_ifname - Get interface name : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a name of network interface associated with with wpa_s

Getter for "Ifname" property.

Definition at line 2081 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_interfaces ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_getter_interfaces - Request registered interfaces list : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: The object paths array containing registered interfaces objects paths or DBus error on failure

Getter for "Interfaces" property. Handles requests by dbus clients to return list of registered interfaces objects paths

Definition at line 867 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_network_properties ( DBusMessage *  message,
struct network_handler_args net 
)

wpas_dbus_getter_network_properties - Get options for a configured network : Pointer to incoming dbus message : wpa_supplicant structure for a network interface and wpa_ssid structure for a configured network Returns: DBus message with network properties or DBus error on failure

Getter for "Properties" property of a configured network.

Definition at line 2855 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_networks ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_networks - Get array of networks objects : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: a dbus message containing an array of all configured networks dbus object paths.

Getter for "Networks" property.

Definition at line 2261 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_scanning ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_new_iface_get_scanning - Get interface scanning state : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing whether the interface is scanning

Getter for "scanning" property.

Definition at line 2019 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_getter_state ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_getter_state - Get interface state : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing a STRING representing the current interface state

Getter for "State" property.

Definition at line 1981 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_add_blob ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_handler_add_blob - Store named binary blob (ie, for certificates) : Pointer to incoming dbus message : wpa_supplicant data structure Returns: A dbus message containing an error on failure or NULL on success

Asks wpa_supplicant to internally store a binary blobs.

Definition at line 1505 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_add_network ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_new_iface_add_network - Add a new configured network : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: A dbus message containing the object path of the new network

Handler function for "AddNetwork" method call of a network interface.

Definition at line 1323 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_create_interface ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_handler_create_interface - Request registration of a network iface : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: The object path of the new interface object, or a dbus error message with more information

Handler function for "CreateInterface" method call. Handles requests by dbus clients to register a network interface that wpa_supplicant will manage.

Definition at line 549 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_disconnect ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

Definition at line 1300 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_get_blob ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_handler_get_blob - Get named binary blob (ie, for certificates) : Pointer to incoming dbus message : wpa_supplicant data structure Returns: A dbus message containing array of bytes (blob)

Gets one wpa_supplicant's binary blobs.

Definition at line 1576 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_get_interface ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_handler_get_interface - Get the object path for an interface name : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: The object path of the interface object, or a dbus error message with more information

Handler function for "getInterface" method call.

Definition at line 678 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_remove_blob ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_remove_handler_remove_blob - Remove named binary blob : Pointer to incoming dbus message : wpa_supplicant data structure Returns: NULL on success or dbus error

Asks wpa_supplicant to internally remove a binary blobs.

Definition at line 1641 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_remove_interface ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_handler_remove_interface - Request deregistration of an interface : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: a dbus message containing a UINT32 indicating success (1) or failure (0), or returns a dbus error message with more information

Handler function for "removeInterface" method call. Handles requests by dbus clients to deregister a network interface that wpa_supplicant currently manages.

Definition at line 646 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_remove_network ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_handler_remove_network - Remove a configured network : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: NULL on success or dbus error on failure

Handler function for "RemoveNetwork" method call of a network interface.

Definition at line 1393 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_scan ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_handler_scan - Request a wireless scan on an interface : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: NULL indicating success or DBus error message on failure

Handler function for "Scan" method call of a network device. Requests that wpa_supplicant perform a wireless scan as soon as possible on a particular wireless interface.

Definition at line 1201 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_handler_select_network ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_handler_select_network - Attempt association with a network : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: NULL on success or dbus error on failure

Handler function for "SelectNetwork" method call of network interface.

Definition at line 1455 of file dbus_new_handlers.c.

static char* wpas_dbus_new_decompose_object_path ( const char *  path,
char **  network,
char **  bssid 
) [static]

wpas_dbus_new_decompose_object_path - Decompose an interface object path into parts : The dbus object path : (out) the configured network this object path refers to, if any : (out) the scanned bssid this object path refers to, if any Returns: The object path of the network interface this path refers to

For a given object path, decomposes the object path into object id, network, and BSSID parts, if those parts exist.

Definition at line 57 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_setter_ap_scan ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

wpas_dbus_setter_ap_scan - Control roaming mode : Pointer to incoming dbus message : wpa_supplicant structure for a network interface Returns: NULL

Setter function for "ApScan" property.

Definition at line 2053 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_setter_debug_level ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_setter_debug_level - Set debug level : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: NULL or DBus error message

Setter for "DebugLevel" property.

Definition at line 773 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_setter_debug_show_keys ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_setter_debug_show_keys - Set debug show keys : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: NULL or DBus error message

Setter for "DebugShowKeys" property.

Definition at line 837 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_setter_debug_timestamp ( DBusMessage *  message,
struct wpa_global global 
)

wpas_dbus_setter_debug_timestamp - Set debug timestamp : Pointer to incoming dbus message : wpa_supplicant global data structure Returns: NULL or DBus error message

Setter for "DebugTimestamp" property.

Definition at line 811 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_setter_enabled ( DBusMessage *  message,
struct network_handler_args net 
)

wpas_dbus_setter_enabled - Mark a configured network as enabled or disabled : Pointer to incoming dbus message : wpa_supplicant structure for a network interface and wpa_ssid structure for a configured network Returns: NULL indicating success or DBus error on failure

Setter for "Enabled" property of a configured network.

Definition at line 2818 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_setter_network_properties ( DBusMessage *  message,
struct network_handler_args net 
)

wpas_dbus_setter_network_properties - Set options for a configured network : Pointer to incoming dbus message : wpa_supplicant structure for a network interface and wpa_ssid structure for a configured network Returns: NULL indicating success or DBus error on failure

Setter for "Properties" property of a configured network.

Definition at line 2929 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_simple_array_property_getter ( DBusMessage *  message,
const int  type,
const void *  array,
size_t  array_len 
)

wpas_dbus_simple_array_property_getter - Get array type property : Pointer to incoming dbus message : DBus type of property array elements (must be basic type) : pointer to array of elements to put into response message : length of above array Returns: The DBus message containing response for Properties.Get call or DBus error message if error occurred.

Generic getter for array type properties. Array elements type is required to be basic.

Definition at line 440 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_simple_property_getter ( DBusMessage *  message,
const int  type,
const void *  val 
)

wpas_dbus_simple_property_getter - Get basic type property : Pointer to incoming dbus message : DBus type of property (must be basic type) : pointer to place holding property value Returns: The DBus message containing response for Properties.Get call or DBus error message if error occurred.

Generic getter for basic type properties. Type is required to be basic.

Definition at line 339 of file dbus_new_handlers.c.

DBusMessage* wpas_dbus_simple_property_setter ( DBusMessage *  message,
const int  type,
void *  val 
)

wpas_dbus_simple_property_setter - Set basic type property : Pointer to incoming dbus message : DBus type of property (must be basic type) : pointer to place where value being set will be stored Returns: NULL or DBus error message if error occurred.

Generic setter for basic type properties. Type is required to be basic.

Definition at line 393 of file dbus_new_handlers.c.


Variable Documentation

const char* debug_strings[] [static]
Initial value:
 {
        "msgdump", "debug", "info", "warning", "error", NULL
}

Definition at line 42 of file dbus_new_handlers.c.

const char* dont_quote[] [static]
Initial value:
 {
        "key_mgmt", "proto", "pairwise", "auth_alg", "group", "eap",
        "opensc_engine_path", "pkcs11_engine_path", "pkcs11_module_path",
        "bssid", NULL
}

Definition at line 180 of file dbus_new_handlers.c.

Definition at line 29 of file wpa_debug.c.

Definition at line 30 of file wpa_debug.c.

Definition at line 31 of file wpa_debug.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:00 2013