source:
ogServer-Git/src/cfg.h
@
4e2ef1a
Last change on this file since 4e2ef1a was fe1ce97, checked in by , 5 years ago | |
---|---|
|
|
File size: 586 bytes |
Rev | Line | |
---|---|---|
[866b6c5] | 1 | #ifndef _OG_SERVER_CFG_H |
2 | #define _OG_SERVER_CFG_H | |
3 | ||
[fe1ce97] | 4 | #include <jansson.h> |
5 | #include "dbi.h" | |
6 | ||
[866b6c5] | 7 | struct og_server_cfg { |
[fe1ce97] | 8 | struct og_dbi_config db; |
[866b6c5] | 9 | struct { |
10 | const char *ip; | |
11 | const char *port; | |
12 | const char *api_token; | |
13 | } rest; | |
14 | struct { | |
15 | const char *interface; | |
16 | } wol; | |
[403e7c3] | 17 | struct { |
18 | const char *dir; | |
19 | } repo; | |
[bdd8519] | 20 | json_t *json; |
[866b6c5] | 21 | }; |
22 | ||
23 | int parse_json_config(const char *filename, struct og_server_cfg *cfg); | |
24 | ||
[3cea4bb] | 25 | extern struct og_server_cfg ogconfig; |
[f068a79] | 26 | |
[866b6c5] | 27 | #endif |
Note: See TracBrowser
for help on using the repository browser.