Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/***********************************************************************************************************************************
Configuration Load
***********************************************************************************************************************************/
#ifndef CONFIG_LOAD_H
#define CONFIG_LOAD_H
 
#include <sys/types.h>
 
#include "config/config.h"
 
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
// Load the configuration
FN_EXTERN void cfgLoad(unsigned int argListSize, const char *argList[]);
 
// Load the configuration using the specified stanza
FN_EXTERN void cfgLoadStanza(const String *stanza);
 
// Generate log file path and name. Only the command role is configurable here because log settings may vary between commands.
FN_EXTERN String *cfgLoadLogFileName(ConfigCommandRole commandRole);
 
// Attempt to set the log file and turn file logging off if the file cannot be opened
FN_EXTERN void cfgLoadLogFile(void);
 
// Update options that have complex rules
FN_EXTERN void cfgLoadUpdateOption(void);
 
#endif