fmt again

This commit is contained in:
2017-10-22 16:50:45 +02:00
parent 2c80b59d71
commit 3eac0ee794
2 changed files with 5 additions and 7 deletions
+3
View File
@@ -82,4 +82,7 @@ enum xset_result xset_string(const char *name, char *field, const char *buff, co
#define XGET_CGI_FUNC(type, name, suffix, deref, xget, cast, xset, xsarg, xnotify) \ #define XGET_CGI_FUNC(type, name, suffix, deref, xget, cast, xset, xsarg, xnotify) \
if (streq(token, #name)) xget(buff, deref wificonf->name); if (streq(token, #name)) xget(buff, deref wificonf->name);
#define XSTRUCT_FIELD(type, name, suffix, deref, xget, cast, xset, xsarg, xnotify) \
type name suffix;
#endif //ESPTERM_CONFIG_XMACROS_H #endif //ESPTERM_CONFIG_XMACROS_H
+2 -7
View File
@@ -8,6 +8,7 @@
#define ESP_VT100_FIRMWARE_WIFI_MANAGER_H #define ESP_VT100_FIRMWARE_WIFI_MANAGER_H
#include <esp8266.h> #include <esp8266.h>
#include "config_xmacros.h"
#include "cgi_wifi.h" #include "cgi_wifi.h"
#define SSID_LEN 32 #define SSID_LEN 32
@@ -64,14 +65,8 @@
* This block can be used eg. for WiFi config backup. * This block can be used eg. for WiFi config backup.
*/ */
typedef struct { typedef struct {
#define X( \ #define X XSTRUCT_FIELD
type, name, suffix, \
deref, xget, \
cast, xset, xsarg, \
xnotify) type name suffix;
XTABLE_WIFI XTABLE_WIFI
#undef X #undef X
} WiFiConfigBundle; } WiFiConfigBundle;