#pragma once
/*
- * other definitions ---------------------------------------------------
+ * other definitions ---------------------------------------------------
*/
struct afb_config_list {
char *workdir; // where to run the program
char *uploaddir; // where to store transient files
char *token; // initial authentication token [default NULL no session]
+ char *name; /* name to set to the daemon */
struct afb_config_list *aliases;
struct afb_config_list *dbus_clients;
int apiTimeout;
int cntxTimeout; // Client Session Context timeout
int nbSessionMax; // max count of sessions
+
+ /* enums */
int mode; // mode of listening
int tracereq;
int traceditf;
unsigned noHttpd: 1;
unsigned background: 1; /* run in backround mode */
unsigned monitoring: 1; /* activates monitoring */
+ unsigned random_token: 1; /* expects a random token */
};
extern struct afb_config *afb_config_parse_arguments(int argc, char **argv);