From 9204bc1836f44f7fe2197933f5cd426505573b1b Mon Sep 17 00:00:00 2001 From: lakinduakash Date: Sun, 14 Apr 2019 00:30:46 +0530 Subject: [PATCH] Add CONFIG key defines --- src/ui/h_prop.h | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/src/ui/h_prop.h b/src/ui/h_prop.h index fc4bbbb..82e28f5 100644 --- a/src/ui/h_prop.h +++ b/src/ui/h_prop.h @@ -5,8 +5,48 @@ #ifndef WIHOTSPOT_H_PROP_H #define WIHOTSPOT_H_PROP_H + +#define CHANNEL "CHANNEL" +#define GATEWAY "GATEWAY" +#define WPA_VERSION "WPA_VERSION" +#define ETC_HOSTS "ETC_HOSTS" +#define DHCP_DNS "DHCP_DNS" +#define NO_DNS "NO_DNS" +#define NO_DNSMASQ "NO_DNSMASQ" +#define HIDDEN "HIDDEN" +#define MAC_FILTER "MAC_FILTER" +#define MAC_FILTER_ACCEP "MAC_FILTER_ACCEPT" +#define ISOLATE_CLIENTS "ISOLATE_CLIENTS" +#define SHARE_METHOD "SHARE_METHOD" +#define IEEE80211N "IEEE80211N" +#define IEEE80211AC "IEEE80211AC" +#define HT_CAPAB "HT_CAPAB" +#define VHT_CAPAB "VHT_CAPAB" +#define DRIVER "DRIVER" +#define NO_VIRT "NO_VIRT" +#define COUNTRY "COUNTRY" +#define FREQ_BAND "FREQ_BAND" +#define NEW_MACADDR "NEW_MACADDR" +#define DAEMONIZE "DAEMONIZE" +#define NO_HAVEGED "NO_HAVEGED" +#define WIFI_IFACE "WIFI_IFACE" +#define INTERNET_IFACE "INTERNET_IFACE" +#define SSID "SSID" +#define PASSPHRASE "PASSPHRASE" +#define USE_PSK "USE_PSK" + +#define CONFIG_FILE "wh.config" + static int parse_output(char *); -char * build_command(char*, char*,char*, char*); -int startShell(char*); + +char *build_command(char *, char *, char *, char *); + +int startShell(char *); + +int create_config(char *); + +int init_read_wh_config(void); + +const char *print_test(); #endif //WIHOTSPOT_H_PROP_H