18 lines
290 B
C
18 lines
290 B
C
#ifndef SERVER_CONFIG_H
|
|
#define SERVER_CONFIG_H
|
|
|
|
typedef struct
|
|
{
|
|
int server_port;
|
|
char* secret;
|
|
} config_t;
|
|
|
|
void config_ctor(config_t* this);
|
|
void config_dtor(config_t* this);
|
|
|
|
int config_read(config_t* this, const char* filename);
|
|
|
|
int print_config();
|
|
|
|
#endif // SERVER_CONFIG_H
|