27#ifndef __CONFIG_SERVER_H
28#define __CONFIG_SERVER_H
33typedef void(diagserver)(
int sock,
const char *url);
34extern diagserver *pDiagServer;
46#define DiscoverStyle \
48 ".styleDiv{width:70%; min-width:480px; max-width:900px; font-family:sans-serif; margin-left:auto; margin-right:auto;}" \
49 ".discDiv{border-width:1px; border-style:solid; border-color:#595454; border-radius:5px; margin-top:30px;}" \
50 ".discTab{width:100%; color:#595454; border-spacing:0px;}" \
51 ".devTh{font-weight:bold; border-bottom:2px solid #ddd; padding:8px; border-top:1px solid #595454; color:#333;}" \
52 ".devTd{border-top:1px solid #ddd; padding:8px; color:#333;}" \
53 ".tabTh{padding:8px; background-color:#595454; color:#fff; text-align:left;}" \
54 ".btnCnf{width:125px; height:40px; background-color:#595454; color:#fff; border-radius:5px; margin-top:10px;}" \
57void StartConfigServer(
int prio);
60void AddConfigServlet(servlet *s);
61void ResumeSerialConfig(
int fd_cfg =
CurrentStdioFD(1),
bool persist =
true);
77bool ConfigAuthenticate(
const char *up);
80void ConfigSetServlets();
83void AddConfigServlet(servlet *s);
86void ConfigIntFillInFD(fd_set &r_set, fd_set &w_set, fd_set &write_fds);
87void ConfigIntProcessSelectResult(fd_set &r_set, fd_set &w_set, fd_set &error_fds);
106 virtual int AddToSelectSet(fd_set &read_fds, fd_set &write_fds, fd_set &error_fds);
107 virtual void ProcessSelectResult(fd_set &read_fds, fd_set &write_fds, fd_set &error_fds);
110#ifdef NNDK_WEB_CONFIG_TOGGLE
120void DisableWebConfig();
128void EnableWebConfig();
135bool IsWebConfigEnabled();
Class to run web configurator.
Definition config_server.h:100
Boolean Configuration Variable.
Definition config_obj.h:997
Configuration object header file.
size_t ConfigMaxSize()
Returns the number of bytes available in configuration flash.
void SaveConfigToStorage()
Write all pending data to flash memory.
void EnableConfigMirror()
Enable the configuration mirror.
size_t ConfigSize()
Returns the number of bytes currently in use by configuration flash.
int CurrentStdioFD(int stdio_fd)
Returns the current file descriptor mapped to the stdio file descriptor.