10 #ifndef WPA_DBUS_CTRL_H 11 #define WPA_DBUS_CTRL_H 13 #include <dbus/dbus.h> 15 typedef DBusMessage * (*WPADBusMethodHandler)(DBusMessage *message,
17 typedef void (*WPADBusArgumentFreeFunction)(
void *handler_arg);
20 typedef dbus_bool_t (*WPADBusPropertyAccessor)(
22 DBusMessageIter *iter, DBusError *error,
void *user_data);
23 #define DECLARE_ACCESSOR(f) \ 24 dbus_bool_t f(const struct wpa_dbus_property_desc *property_desc, \ 25 DBusMessageIter *iter, DBusError *error, void *user_data) 28 DBusConnection *connection;
37 u8 *prop_changed_flags;
43 WPADBusArgumentFreeFunction user_data_free_func;
46 enum dbus_arg_direction { ARG_IN, ARG_OUT };
51 enum dbus_arg_direction dir;
54 #define END_ARGS { NULL, NULL, ARG_IN } 61 const char *dbus_method;
63 const char *dbus_interface;
65 WPADBusMethodHandler method_handler;
75 const char *dbus_signal;
77 const char *dbus_interface;
87 const char *dbus_property;
89 const char *dbus_interface;
93 WPADBusPropertyAccessor getter;
95 WPADBusPropertyAccessor setter;
101 #define WPAS_DBUS_OBJECT_PATH_MAX 150 102 #define WPAS_DBUS_INTERFACE_MAX 150 103 #define WPAS_DBUS_METHOD_SIGNAL_PROP_MAX 50 104 #define WPAS_DBUS_AUTH_MODE_MAX 64 106 #define WPA_DBUS_INTROSPECTION_INTERFACE "org.freedesktop.DBus.Introspectable" 107 #define WPA_DBUS_INTROSPECTION_METHOD "Introspect" 108 #define WPA_DBUS_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties" 109 #define WPA_DBUS_PROPERTIES_GET "Get" 110 #define WPA_DBUS_PROPERTIES_SET "Set" 111 #define WPA_DBUS_PROPERTIES_GETALL "GetAll" 115 int wpa_dbus_ctrl_iface_init(
struct wpas_dbus_priv *iface,
char *dbus_path,
119 int wpa_dbus_register_object_per_iface(
121 const char *path,
const char *ifname,
124 int wpa_dbus_unregister_object_per_iface(
128 dbus_bool_t wpa_dbus_get_object_properties(
struct wpas_dbus_priv *iface,
131 DBusMessageIter *iter);
134 void wpa_dbus_flush_all_changed_properties(DBusConnection *con);
136 void wpa_dbus_flush_object_changed_properties(DBusConnection *con,
141 const char *property);
143 DBusMessage * wpa_dbus_introspect(DBusMessage *message,
146 char * wpas_dbus_new_decompose_object_path(
const char *path,
const char *sep,
149 DBusMessage *wpas_dbus_reply_new_from_error(DBusMessage *message,
151 const char *fallback_name,
152 const char *fallback_string);
struct wpa_dbus_property_desc - DBus property description
Definition: dbus_new_helpers.h:85
Definition: dbus_common_i.h:18
struct wpa_dbus_signal_desc - DBus signal description
Definition: dbus_new_helpers.h:73
Definition: dbus_new_helpers.h:48
Definition: dbus_new_helpers.h:27
struct wpa_dbus_method_desc - DBus method description
Definition: dbus_new_helpers.h:59
get_all_properties - Responds for GetAll properties calls on object : Message with GetAll call proper...