aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorOla Olsson <ola1olsson@gmail.com>2015-01-27 23:22:06 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-08 20:49:58 (GMT)
commit10263dc2a436a2c69a3a80592a803ad170792472 (patch)
treea6868ee2a29992351893bcd65b56fe2cd186efae /wpa_supplicant/config.h
parent2265376271c43e60fe2f94dfcdb33da82e0e1a9f (diff)
downloadhostap-10263dc2a436a2c69a3a80592a803ad170792472.zip
hostap-10263dc2a436a2c69a3a80592a803ad170792472.tar.gz
hostap-10263dc2a436a2c69a3a80592a803ad170792472.tar.bz2
Add control interface commands for fetching wpa_config values
The new "DUMP" and "SET <variable>" control interface commands can be used to fetch global wpa_supplicant configuration parameters. Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 6adf1eb..2e54994 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -1167,6 +1167,11 @@ int wpa_config_set(struct wpa_ssid *ssid, const char *var, const char *value,
int line);
int wpa_config_set_quoted(struct wpa_ssid *ssid, const char *var,
const char *value);
+int wpa_config_dump_values(struct wpa_config *config, char *buf,
+ size_t buflen);
+int wpa_config_get_value(const char *name, struct wpa_config *config,
+ char *buf, size_t buflen);
+
char ** wpa_config_get_all(struct wpa_ssid *ssid, int get_keys);
char * wpa_config_get(struct wpa_ssid *ssid, const char *var);
char * wpa_config_get_no_key(struct wpa_ssid *ssid, const char *var);