config_none.c
Go to the documentation of this file.
00001 /*
00002  * WPA Supplicant / Configuration backend: empty starting point
00003  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  *
00014  * This file implements dummy example of a configuration backend. None of the
00015  * functions are actually implemented so this can be used as a simple
00016  * compilation test or a starting point for a new configuration backend.
00017  */
00018 
00019 #include "includes.h"
00020 
00021 #include "common.h"
00022 #include "config.h"
00023 #include "base64.h"
00024 
00025 
00026 struct wpa_config * wpa_config_read(const char *name)
00027 {
00028         struct wpa_config *config;
00029 
00030         config = wpa_config_alloc_empty(NULL, NULL);
00031         if (config == NULL)
00032                 return NULL;
00033         /* TODO: fill in configuration data */
00034         return config;
00035 }
00036 
00037 
00038 int wpa_config_write(const char *name, struct wpa_config *config)
00039 {
00040         struct wpa_ssid *ssid;
00041         struct wpa_config_blob *blob;
00042 
00043         wpa_printf(MSG_DEBUG, "Writing configuration file '%s'", name);
00044 
00045         /* TODO: write global config parameters */
00046 
00047 
00048         for (ssid = config->ssid; ssid; ssid = ssid->next) {
00049                 /* TODO: write networks */
00050         }
00051 
00052         for (blob = config->blobs; blob; blob = blob->next) {
00053                 /* TODO: write blobs */
00054         }
00055 
00056         return 0;
00057 }


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:36