dbus_old.c File Reference

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

Go to the source code of this file.

Functions

int wpa_supplicant_dbus_ctrl_iface_init (struct wpas_dbus_priv *iface)
void wpa_supplicant_dbus_notify_scan_results (struct wpa_supplicant *wpa_s)
void wpa_supplicant_dbus_notify_scanning (struct wpa_supplicant *wpa_s)
void wpa_supplicant_dbus_notify_state_change (struct wpa_supplicant *wpa_s, enum wpa_states new_state, enum wpa_states old_state)
void wpa_supplicant_dbus_notify_wps_cred (struct wpa_supplicant *wpa_s, const struct wps_credential *cred)
struct wpa_supplicantwpa_supplicant_get_iface_by_dbus_path (struct wpa_global *global, const char *path)
char * wpas_dbus_decompose_object_path (const char *path, char **network, char **bssid)
static DBusMessage * wpas_dbus_new_invalid_bssid_error (DBusMessage *message)
DBusMessage * wpas_dbus_new_invalid_iface_error (DBusMessage *message)
DBusMessage * wpas_dbus_new_invalid_network_error (DBusMessage *message)
int wpas_dbus_register_iface (struct wpa_supplicant *wpa_s)
int wpas_dbus_unregister_iface (struct wpa_supplicant *wpa_s)
static DBusMessage * wpas_dispatch_bssid_method (DBusMessage *message, struct wpa_supplicant *wpa_s, const char *bssid_txt)
static DBusMessage * wpas_dispatch_network_method (DBusMessage *message, struct wpa_supplicant *wpa_s, int network_id)
static DBusHandlerResult wpas_iface_message_handler (DBusConnection *connection, DBusMessage *message, void *user_data)
static DBusHandlerResult wpas_message_handler (DBusConnection *connection, DBusMessage *message, void *user_data)

Function Documentation

int wpa_supplicant_dbus_ctrl_iface_init ( struct wpas_dbus_priv iface  ) 

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

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

Definition at line 556 of file dbus_old.c.

void wpa_supplicant_dbus_notify_scan_results ( struct wpa_supplicant wpa_s  ) 

wpa_supplicant_dbus_notify_scan_results - Send a scan results signal : wpa_supplicant network interface data Returns: 0 on success, -1 on failure

Notify listeners that this interface has updated scan results.

Definition at line 374 of file dbus_old.c.

void wpa_supplicant_dbus_notify_scanning ( struct wpa_supplicant wpa_s  ) 

wpa_supplicant_dbus_notify_scanning - send scanning status : wpa_supplicant network interface data Returns: 0 on success, -1 on failure

Notify listeners of interface scanning state changes

Definition at line 469 of file dbus_old.c.

void wpa_supplicant_dbus_notify_state_change ( struct wpa_supplicant wpa_s,
enum wpa_states  new_state,
enum wpa_states  old_state 
)

wpa_supplicant_dbus_notify_state_change - Send a state change signal : wpa_supplicant network interface data : new state wpa_supplicant is entering : old state wpa_supplicant is leaving Returns: 0 on success, -1 on failure

Notify listeners that wpa_supplicant has changed state

Definition at line 405 of file dbus_old.c.

void wpa_supplicant_dbus_notify_wps_cred ( struct wpa_supplicant wpa_s,
const struct wps_credential cred 
)

Definition at line 541 of file dbus_old.c.

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

wpa_supplicant_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 682 of file dbus_old.c.

char* wpas_dbus_decompose_object_path ( const char *  path,
char **  network,
char **  bssid 
)

wpas_dbus_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 40 of file dbus_old.c.

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

wpas_dbus_new_invalid_bssid_error - Return a new invalid bssid error message : Pointer to incoming dbus message this error refers to Returns: a dbus error message

Convenience function to create and return an invalid bssid error

Definition at line 129 of file dbus_old.c.

DBusMessage* wpas_dbus_new_invalid_iface_error ( DBusMessage *  message  ) 

wpas_dbus_new_invalid_iface_error - 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 100 of file dbus_old.c.

DBusMessage* wpas_dbus_new_invalid_network_error ( DBusMessage *  message  ) 

wpas_dbus_new_invalid_network_error - Return a new invalid network 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 115 of file dbus_old.c.

int wpas_dbus_register_iface ( struct wpa_supplicant wpa_s  ) 

wpas_dbus_register_new_iface - Register a new interface with dbus : wpa_supplicant interface description structure to register Returns: 0 on success, -1 on error

Registers a new interface with dbus and assigns it a dbus object path.

Definition at line 610 of file dbus_old.c.

int wpas_dbus_unregister_iface ( struct wpa_supplicant wpa_s  ) 

wpas_dbus_unregister_iface - Unregister an interface from dbus : wpa_supplicant interface structure Returns: 0 on success, -1 on failure

Unregisters the interface with dbus

Definition at line 653 of file dbus_old.c.

static DBusMessage* wpas_dispatch_bssid_method ( DBusMessage *  message,
struct wpa_supplicant wpa_s,
const char *  bssid_txt 
) [static]

wpas_dispatch_bssid_method - dispatch messages for scanned networks : the incoming dbus message : a network interface's data : bssid of the scanned network we're interested in Returns: a reply dbus message, or a dbus error message

This function dispatches all incoming dbus messages for scanned networks.

Definition at line 177 of file dbus_old.c.

static DBusMessage* wpas_dispatch_network_method ( DBusMessage *  message,
struct wpa_supplicant wpa_s,
int  network_id 
) [static]

wpas_dispatch_network_method - dispatch messages for configured networks : the incoming dbus message : a network interface's data : id of the configured network we're interested in Returns: a reply dbus message, or a dbus error message

This function dispatches all incoming dbus messages for configured networks.

Definition at line 145 of file dbus_old.c.

static DBusHandlerResult wpas_iface_message_handler ( DBusConnection *  connection,
DBusMessage *  message,
void *  user_data 
) [static]

wpas_iface_message_handler - Dispatch messages for interfaces or networks : Connection to the system message bus : An incoming dbus message : A pointer to a dbus control interface data structure Returns: Whether or not the message was handled

This function dispatches all incoming dbus messages for network interfaces, or objects owned by them, such as scanned BSSIDs and configured networks.

Definition at line 209 of file dbus_old.c.

static DBusHandlerResult wpas_message_handler ( DBusConnection *  connection,
DBusMessage *  message,
void *  user_data 
) [static]

wpas_message_handler - dispatch incoming dbus messages : connection to the system message bus : an incoming dbus message : a pointer to a dbus control interface data structure Returns: whether or not the message was handled

This function dispatches all incoming dbus messages to the correct handlers, depending on what the message's target object path is, and what the method call is.

Definition at line 319 of file dbus_old.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:01:47 2013