You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
584 B

struct server {
guint version;
GHashTable *plugins;
GHashTable *options;
GHashTable *actions;
GHashTable *setups;
gpointer *option_def_values;
gboolean exiting;
GMutex *mutex; /* general mutex for accessing the various members */
/* logs */
gboolean rotate_logs;
GHashTable *logs;
struct log_t *log_stderr;
struct log_t *log_syslog;
GAsyncQueue *log_queue;
GThread *log_thread;
GMutex *log_mutex; /* manage access for the logs hashtable */
server* server_new();
void server_free(server* srv);