mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
datastorage (bug fix): deleting expired array item would fail to test next item test_storage: extended to cover all required datastorage entry points test_storage: added ability to read script file test_storage: added new and revised test scripts TESTING.md: added to describe testing approach general: added various TODO notes on things to come back to general: revised #includes to make each "self-compiling" general: revised #includes to minimise usage across source files general: moved declarations and defintions to simplify and rationalise code datastorage: refactor to support scalability testing datastorage: made independent of time() calls to support testing datastorage: fixed redundant use of both SORT_NUM and SORT_LENGTH defines datastorage: fake kicking to test clients move between access points msghandler: new module to reduce compile time interdependencies mshhandler: (issue #100?) fixed SEGV memcpy() in dump_client() using strncpy() ubus: merged uface into ubus mac_utils: new module for MAC address utilites test_header: added target to help #include rationalisation Tested-by: Nick Hainke <vincent@systemli.org>
58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
#ifndef DAWN_UCI_H
|
|
#define DAWN_UCI_H
|
|
|
|
#include <time.h>
|
|
#include <stdbool.h>
|
|
|
|
/**
|
|
* Init uci. Call this function before using the other functions!
|
|
* @return if call was successful.
|
|
*/
|
|
int uci_init();
|
|
|
|
/**
|
|
* Clear uci. Call this function after using uci!
|
|
* @return if call was successful.
|
|
*/
|
|
int uci_clear();
|
|
|
|
/**
|
|
* Function that returns the metric for the load balancing sheme using uci.
|
|
* @return the load balancing metric.
|
|
*/
|
|
struct probe_metric_s uci_get_dawn_metric();
|
|
|
|
/**
|
|
* Function that returns a struct with all the time config values.
|
|
* @return the time config values.
|
|
*/
|
|
struct time_config_s uci_get_time_config();
|
|
|
|
/**
|
|
* Function that returns all the network informations.
|
|
* @return the network config values.
|
|
*/
|
|
struct network_config_s uci_get_dawn_network();
|
|
|
|
/**
|
|
* Function that returns the hostapd directory reading from the config file.
|
|
* @return the hostapd directory.
|
|
*/
|
|
bool uci_get_dawn_hostapd_dir();
|
|
|
|
/**
|
|
* Function that returns the sort order.
|
|
* @return the sort order.
|
|
*/
|
|
bool uci_get_dawn_sort_order();
|
|
|
|
int uci_set_network(char* uci_cmd);
|
|
|
|
/**
|
|
* Function that writes the hostname in the given char buffer.
|
|
*/
|
|
void uci_get_hostname(char* hostname);
|
|
|
|
int uci_reset();
|
|
|
|
#endif //DAWN_UCI_H_H
|