source: ogServer-Git/src/cfg.h @ 91c3a28

Last change on this file since 91c3a28 was 0631b0e, checked in by OpenGnSys Support Team <soporte-og@…>, 4 years ago

#988 Add DB port option to ogserver.json config file

This patch provides functionality to select a database port. It also adds a
default IP for the database.

  • Property mode set to 100644
File size: 640 bytes
RevLine 
[866b6c5]1#ifndef _OG_SERVER_CFG_H
2#define _OG_SERVER_CFG_H
3
4struct og_server_cfg {
5        struct {
6                const char *user;
7                const char *pass;
8                const char *ip;
[0631b0e]9                unsigned int port;
[866b6c5]10                const char *name;
11        } db;
12        struct {
13                const char      *ip;
14                const char      *port;
15                const char      *api_token;
16        } rest;
17        struct {
18                const char      *interface;
19        } wol;
20};
21
22int parse_json_config(const char *filename, struct og_server_cfg *cfg);
23void from_json_to_legacy(struct og_server_cfg *cfg);
24
25#endif
Note: See TracBrowser for help on using the repository browser.