WPA Supplicant / Configuration backend: empty starting point. More...
#include "includes.h"#include "common.h"#include "config.h"#include "base64.h"Functions | |
| struct wpa_config * | wpa_config_read (const char *name) |
| Read and parse configuration database. | |
| int | wpa_config_write (const char *name, struct wpa_config *config) |
| Write or update configuration data. | |
WPA Supplicant / Configuration backend: empty starting point.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
This file implements dummy example of a configuration backend. None of the functions are actually implemented so this can be used as a simple compilation test or a starting point for a new configuration backend.
| struct wpa_config* wpa_config_read | ( | const char * | name | ) | [read] |
Read and parse configuration database.
| name | Name of the configuration (e.g., path and file name for the configuration file) |
This function reads configuration data, parses its contents, and allocates data structures needed for storing configuration information. The allocated data can be freed with wpa_config_free().
Each configuration backend needs to implement this function.
| int wpa_config_write | ( | const char * | name, | |
| struct wpa_config * | config | |||
| ) |
Write or update configuration data.
| name | Name of the configuration (e.g., path and file name for the configuration file) | |
| config | Configuration data from wpa_config_read() |
This function write all configuration data into an external database (e.g., a text file) in a format that can be read with wpa_config_read(). This can be used to allow wpa_supplicant to update its configuration, e.g., when a new network is added or a password is changed.
Each configuration backend needs to implement this function.
1.6.1