/* This software was written by Dirk Engling It is considered beerware. Prost. Skol. Cheers or whatever. $id$ */ #ifndef OT_CONFIG_H__ #define OT_CONFIG_H__ #include #include "trackerlogic.h" /* An address opentracker was asked to listen on. Options the statement did not name have been filled in from the file wide defaults by the time these are handed out. sock is filled in by whoever binds them. */ typedef struct { ot_ip6 ip; uint16_t port; PROTO_FLAG proto; int shared; int workers; int64_t sock; } ot_listen; extern const char *g_redirecturl; extern const char *g_serverdir; extern const char *g_serveruser; extern const char *g_statefile; /* Reads the command line and every config file it names. Exits on error. */ void config_parse(int argc, char **argv); ot_listen *config_listen_entries(size_t *count); #endif