-// Command line structure hold cli --command + help text
-typedef struct {
- int val; // command number within application
- int has_arg; // command number within application
- char *name; // command as used in --xxxx cli
- char *help; // help text
-} AFB_options;
-
-// main config structure
-typedef struct {
- char *logname; // logfile path for info & error log
- char *console; // console device name (can be a file or a tty)
- int localhostOnly;
- int httpdPort;
- char *smack; // smack label
- char *plugins; // list of requested plugins
- char *rootdir; // base dir for httpd file download
- char *rootbase; // Angular HTML5 base URL
- char *rootapi; // Base URL for REST APIs
- char *pidfile; // where to store pid when running background
- char *sessiondir; // where to store mixer session files
- char *configfile; // where to store configuration on gateway exit
- char *setuid; // downgrade uid to username
- char *token; // initial authentication token [default NULL no session]
- int cacheTimeout;
- int apiTimeout;
- int cntxTimeout; // Client Session Context timeout
- AFB_aliasdir *aliasdir; // alias mapping for icons,apps,...
-} AFB_config;
-
-
-
-typedef struct {
- int len; // command number within application
- json_object *jtype;
-} AFB_privateApi;
-
-