DBus: Refactor array adding, add binary arrays
authorJohannes Berg <johannes.berg@intel.com>
Sun, 12 Jun 2011 21:47:49 +0000 (14:47 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 12 Jun 2011 21:47:49 +0000 (14:47 -0700)
commit911e97e4002019e577bb1086f1fd02daff978544
treec467f31d867138d0d00f6e1e8084a7013e5ef17d
parent58f80e2aeb6a202e615436cfe909799f5df8dcef
DBus: Refactor array adding, add binary arrays

Some new code we're working on will require the dbus type "aay" (an
array of arrays of bytes). To add this, refactor the array code to
reduce code duplication by given a type string to the array starting
code, and also add code to create and parse such arrays from or into an
array of struct wpabuf respectively.

Since there's no unique DBus type for this, add a "fake"
WPAS_DBUS_TYPE_BINARRAY type that is separate from the regular DBus
types for parsing.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
wpa_supplicant/dbus/dbus_dict_helpers.c
wpa_supplicant/dbus/dbus_dict_helpers.h