PostgreSQL Source Code: src/bin/psql/variables.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef VARIABLES_H

14#define VARIABLES_H

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54typedef char *(*VariableSubstituteHook) (char *newval);

55

56

57

58

59

60

61

63{

69};

70

71

73

74

77

79 bool *result);

80

82 int *result);

83

85 double *result, double min, double max);

86

88

92

97

99

100#endif

VariableSubstituteHook substitute_hook

VariableAssignHook assign_hook

void PrintVariables(VariableSpace space)

bool DeleteVariable(VariableSpace space, const char *name)

char *(* VariableSubstituteHook)(char *newval)

void SetVariableHooks(VariableSpace space, const char *name, VariableSubstituteHook shook, VariableAssignHook ahook)

void PsqlVarEnumError(const char *name, const char *value, const char *suggestions)

bool ParseVariableBool(const char *value, const char *name, bool *result)

bool ParseVariableDouble(const char *value, const char *name, double *result, double min, double max)

bool SetVariableBool(VariableSpace space, const char *name)

bool ParseVariableNum(const char *value, const char *name, int *result)

struct _variable * VariableSpace

bool VariableHasHook(VariableSpace space, const char *name)

bool(* VariableAssignHook)(const char *newval)

bool SetVariable(VariableSpace space, const char *name, const char *value)

const char * GetVariable(VariableSpace space, const char *name)

VariableSpace CreateVariableSpace(void)