aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-10-24 16:07:02 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-30 10:04:24 (GMT)
commit7de5688d682d4a96a4ce1f7959428a0112d4b75f (patch)
treedf2c834d1a365a626577b2b9cf94ce3a9ed933c0 /wpa_supplicant/ctrl_iface.h
parent81c57e221d46850966ec43e349e79b18e5756ed7 (diff)
downloadhostap-7de5688d682d4a96a4ce1f7959428a0112d4b75f.zip
hostap-7de5688d682d4a96a4ce1f7959428a0112d4b75f.tar.gz
hostap-7de5688d682d4a96a4ce1f7959428a0112d4b75f.tar.bz2
Make control response processing available to other control interfaces
The D-Bus interface wants to use it too, so it makes sense to have it generic. Signed-off-by: Dan Williams <dcbw@redhat.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.h')
-rw-r--r--wpa_supplicant/ctrl_iface.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.h b/wpa_supplicant/ctrl_iface.h
index 051d99a..88ae6b7 100644
--- a/wpa_supplicant/ctrl_iface.h
+++ b/wpa_supplicant/ctrl_iface.h
@@ -95,6 +95,21 @@ void wpa_supplicant_ctrl_iface_deinit(struct ctrl_iface_priv *priv);
void wpa_supplicant_ctrl_iface_wait(struct ctrl_iface_priv *priv);
/**
+ * wpa_supplicant_ctrl_iface_ctrl_rsp_handle - Handle a control response
+ * @wpa_s: Pointer to wpa_supplicant data
+ * @ssid: Pointer to the network block the reply is for
+ * @field: field the response is a reply for
+ * @value: value (ie, password, etc) for @field
+ * Returns: 0 on success, non-zero on error
+ *
+ * Helper function to handle replies to control interface requests.
+ */
+int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s,
+ struct wpa_ssid *ssid,
+ const char *field,
+ const char *value);
+
+/**
* wpa_supplicant_global_ctrl_iface_init - Initialize global control interface
* @global: Pointer to global data from wpa_supplicant_init()
* Returns: Pointer to private data on success, %NULL on failure