#include "utils/includes.h"
#include "utils/common.h"
#include "utils/list.h"
#include "utils/wpabuf.h"
#include "dbus_common_i.h"
#include "dbus_new_helpers.h"
Go to the source code of this file.
Classes | |
struct | interfaces |
Functions | |
static void | add_arg (struct wpabuf *xml, const char *name, const char *type, const char *direction) |
static void | add_child_nodes (struct wpabuf *xml, DBusConnection *con, const char *path) |
static void | add_entry (struct wpabuf *xml, const char *type, const char *name, const struct wpa_dbus_argument *args, int include_dir) |
static struct interfaces * | add_interface (struct dl_list *list, const char *dbus_interface) |
static void | add_interfaces (struct dl_list *list, struct wpabuf *xml) |
static void | add_introspectable_interface (struct wpabuf *xml) |
static void | add_properties_interface (struct wpabuf *xml) |
static void | add_property (struct wpabuf *xml, const struct wpa_dbus_property_desc *dsc) |
static void | add_wpas_interfaces (struct wpabuf *xml, struct wpa_dbus_object_desc *obj_dsc) |
static void | extract_interfaces (struct dl_list *list, struct wpa_dbus_object_desc *obj_dsc) |
static void | extract_interfaces_methods (struct dl_list *list, const struct wpa_dbus_method_desc *methods) |
static void | extract_interfaces_properties (struct dl_list *list, const struct wpa_dbus_property_desc *properties) |
static void | extract_interfaces_signals (struct dl_list *list, const struct wpa_dbus_signal_desc *signals) |
DBusMessage * | wpa_dbus_introspect (DBusMessage *message, struct wpa_dbus_object_desc *obj_dsc) |
static void add_arg | ( | struct wpabuf * | xml, | |
const char * | name, | |||
const char * | type, | |||
const char * | direction | |||
) | [static] |
Definition at line 58 of file dbus_new_introspect.c.
static void add_child_nodes | ( | struct wpabuf * | xml, | |
DBusConnection * | con, | |||
const char * | path | |||
) | [static] |
Definition at line 175 of file dbus_new_introspect.c.
static void add_entry | ( | struct wpabuf * | xml, | |
const char * | type, | |||
const char * | name, | |||
const struct wpa_dbus_argument * | args, | |||
int | include_dir | |||
) | [static] |
Definition at line 70 of file dbus_new_introspect.c.
static struct interfaces* add_interface | ( | struct dl_list * | list, | |
const char * | dbus_interface | |||
) | [static, read] |
Definition at line 33 of file dbus_new_introspect.c.
Definition at line 159 of file dbus_new_introspect.c.
static void add_introspectable_interface | ( | struct wpabuf * | xml | ) | [static] |
Definition at line 189 of file dbus_new_introspect.c.
static void add_properties_interface | ( | struct wpabuf * | xml | ) | [static] |
Definition at line 201 of file dbus_new_introspect.c.
static void add_property | ( | struct wpabuf * | xml, | |
const struct wpa_dbus_property_desc * | dsc | |||
) | [static] |
Definition at line 89 of file dbus_new_introspect.c.
static void add_wpas_interfaces | ( | struct wpabuf * | xml, | |
struct wpa_dbus_object_desc * | obj_dsc | |||
) | [static] |
Definition at line 227 of file dbus_new_introspect.c.
static void extract_interfaces | ( | struct dl_list * | list, | |
struct wpa_dbus_object_desc * | obj_dsc | |||
) | [static] |
extract_interfaces - Extract interfaces from methods, signals and props : Interface list to be filled : Description of object from which interfaces will be extracted
Iterates over all methods, signals, and properties registered with an object and collects all declared DBus interfaces and create interfaces' node in XML root node for each. Returned list elements contain interface name and XML node of corresponding interface.
Definition at line 150 of file dbus_new_introspect.c.
static void extract_interfaces_methods | ( | struct dl_list * | list, | |
const struct wpa_dbus_method_desc * | methods | |||
) | [static] |
Definition at line 99 of file dbus_new_introspect.c.
static void extract_interfaces_properties | ( | struct dl_list * | list, | |
const struct wpa_dbus_property_desc * | properties | |||
) | [static] |
Definition at line 127 of file dbus_new_introspect.c.
static void extract_interfaces_signals | ( | struct dl_list * | list, | |
const struct wpa_dbus_signal_desc * | signals | |||
) | [static] |
Definition at line 113 of file dbus_new_introspect.c.
DBusMessage* wpa_dbus_introspect | ( | DBusMessage * | message, | |
struct wpa_dbus_object_desc * | obj_dsc | |||
) |
wpa_dbus_introspect - Responds for Introspect calls on object : Message with Introspect call : Object description on which Introspect was called Returns: Message with introspection result XML string as only argument
Iterates over all methods, signals and properties registered with object and generates introspection data for the object as XML string.
Definition at line 246 of file dbus_new_introspect.c.