aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-23 09:22:00 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-23 19:28:43 (GMT)
commit77fcbf7ff185ae304b95b9fe8c84d7cdd51f3b9a (patch)
tree98f338194e9c739533d8488c8cc614564067e32c /wpa_supplicant/dbus/dbus_new_handlers.h
parentdbf524946b1a0eff6a16dd977eba1a6270b49c83 (diff)
downloadhostap-77fcbf7ff185ae304b95b9fe8c84d7cdd51f3b9a.zip
hostap-77fcbf7ff185ae304b95b9fe8c84d7cdd51f3b9a.tar.gz
hostap-77fcbf7ff185ae304b95b9fe8c84d7cdd51f3b9a.tar.bz2
D-Bus: Use a helper function to get possibly NULL strings
This type of check is used in quite a few getter functions, so add a helper function to take care of it. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers.h')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.h b/wpa_supplicant/dbus/dbus_new_handlers.h
index 7450fc7..fe8767a 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.h
+++ b/wpa_supplicant/dbus/dbus_new_handlers.h
@@ -43,6 +43,10 @@ dbus_bool_t wpas_dbus_simple_array_array_property_getter(DBusMessageIter *iter,
size_t array_len,
DBusError *error);
+dbus_bool_t wpas_dbus_string_property_getter(DBusMessageIter *iter,
+ const void *val,
+ DBusError *error);
+
DBusMessage * wpas_dbus_handler_create_interface(DBusMessage *message,
struct wpa_global *global);