mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Place configuration settings struct in separate file
This commit is contained in:
23
configfile.h
23
configfile.h
@@ -90,7 +90,7 @@ typedef enum
|
||||
} ConfigItemType;
|
||||
|
||||
|
||||
typedef struct ConfigFileOption
|
||||
typedef struct ConfigFileSetting
|
||||
{
|
||||
const char *name;
|
||||
ConfigItemType type;
|
||||
@@ -111,9 +111,21 @@ typedef struct ConfigFileOption
|
||||
failover_mode_opt failovermodedefault;
|
||||
ConnectionCheckType *checktypedefault;
|
||||
} defval;
|
||||
int minval;
|
||||
int strmaxlen;
|
||||
} ConfigFileOption;
|
||||
union {
|
||||
int intminval;
|
||||
} minval;
|
||||
union {
|
||||
int strmaxlen;
|
||||
} maxval;
|
||||
struct {
|
||||
void (*process_func)(const char *, const char *, char *, ItemList *errors);
|
||||
void (*postprocess_func)(const char *, const char *, char *, ItemList *errors);
|
||||
bool *providedptr;
|
||||
} process;
|
||||
} ConfigFileSetting;
|
||||
|
||||
/* Declare the main configfile structure for client applications */
|
||||
extern ConfigFileSetting config_file_settings[];
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -376,6 +388,9 @@ int repmgr_atoi(const char *s,
|
||||
ItemList *error_list,
|
||||
int minval);
|
||||
|
||||
void parse_time_unit_parameter(const char *name, const char *value, char *dest, ItemList *errors);
|
||||
void repmgr_canonicalize_path(const char *name, const char *value, char *config_item, ItemList *errors);
|
||||
|
||||
bool parse_pg_basebackup_options(const char *pg_basebackup_options,
|
||||
t_basebackup_options *backup_options,
|
||||
int server_version_num,
|
||||
|
||||
Reference in New Issue
Block a user