22 lines
527 B
C
22 lines
527 B
C
#ifndef _SETTINGS_H_
|
|
#define _SETTINGS_H_
|
|
|
|
/////////////
|
|
// Globals //
|
|
/////////////
|
|
|
|
typedef struct {
|
|
char* LOAD_DIR; // Server home directory
|
|
char* CONFIG_FILE; // Config File, should be constant
|
|
int MAX_THREADS; // Maximum number of threads to spawn
|
|
unsigned short PORT_NUMBER; // Port number to use
|
|
char useSHMEM;
|
|
} settings_t;
|
|
///////////////
|
|
// Functions //
|
|
///////////////
|
|
|
|
int init_settings(settings_t *s, int, char**);
|
|
|
|
#endif
|