Last change
on this file was
fe1ce97,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#988 remove legacy configuration
Use og_server_cfg everywhere. Convert port to string to make it easy for the
dbi API since it expects a string. Remove legacy example configuration file.
|
-
Property mode set to
100644
|
File size:
586 bytes
|
Line | |
---|
1 | #ifndef _OG_SERVER_CFG_H |
---|
2 | #define _OG_SERVER_CFG_H |
---|
3 | |
---|
4 | #include <jansson.h> |
---|
5 | #include "dbi.h" |
---|
6 | |
---|
7 | struct og_server_cfg { |
---|
8 | struct og_dbi_config db; |
---|
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; |
---|
17 | struct { |
---|
18 | const char *dir; |
---|
19 | } repo; |
---|
20 | json_t *json; |
---|
21 | }; |
---|
22 | |
---|
23 | int parse_json_config(const char *filename, struct og_server_cfg *cfg); |
---|
24 | |
---|
25 | extern struct og_server_cfg ogconfig; |
---|
26 | |
---|
27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.