blob: 4e90ba25a39e209c00991e7bac5e8483e48c6ec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef COMMON_CONFIG_H_
#define COMMON_CONFIG_H_
#define CONFIG_DIR "@CMAKE_INSTALL_PREFIX@/etc/rocket-cli-client/"
#define CONFIG_PATH CONFIG_DIR "rocket.conf"
#define VERSION "@PROJECT_VERSION@"
#define GIT_HASH "@GIT_HASH@"
#define DEFAULT_WEB_URL "http://localhost:3000/"
#define DEFAULT_WSS_URL "ws://localhost:3000/websocket"
char config_load(const char *config_file);
const char * config_get_web_url(void);
const char * config_get_wss_url(void);
const char * config_get_login(void);
const char * config_get_password(void);
void config_clean(void);
#endif
|