X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/3f09fb9a2389c5c212a70feada3206a3cb523c95..bda74cd89b005fbe608a08ff43143f446724765c:/Plugson/src/Web/ventoy_http.h diff --git a/Plugson/src/Web/ventoy_http.h b/Plugson/src/Web/ventoy_http.h index 4a75196..27b7508 100644 --- a/Plugson/src/Web/ventoy_http.h +++ b/Plugson/src/Web/ventoy_http.h @@ -22,7 +22,7 @@ #include -#define MAX_LANGUAGE 128 +#define MAX_LANGUAGE 256 #define L1 " " #define L2 " " @@ -79,10 +79,12 @@ typedef struct data_control int secondary_menu_timeout; int linux_remount; int secondary_menu; + int password_asterisk; char default_search_root[MAX_PATH]; char default_image[MAX_PATH]; char default_kbd_layout[32]; char help_text_language[32]; + char menu_language[32]; }data_control; #define display_mode_gui 0 @@ -402,9 +404,11 @@ else\ } \ } -#define CONTROL_PARSE_INT(node, val) \ +#define CONTROL_PARSE_INT_DEF_0(node, val) \ if (node->unData.pcStrVal[0] == '1') val = 1 +#define CONTROL_PARSE_INT_DEF_1(node, val) \ + if (node->unData.pcStrVal[0] == '0') val = 0 #define VTOY_JSON_INT(key, val) vtoy_json_get_int(json, key, &val) #define VTOY_JSON_STR(key, buf) vtoy_json_get_string(json, key, sizeof(buf), buf)