Unmark gen_random_uuid() function leakproof.
[pgsql.git] / src / include / fe_utils / option_utils.h
blobafd108fdabfa4ab3a922dd709f34a930f2c9098c
1 /*-------------------------------------------------------------------------
3 * Command line option processing facilities for frontend code
5 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
8 * src/include/fe_utils/option_utils.h
10 *-------------------------------------------------------------------------
12 #ifndef OPTION_UTILS_H
13 #define OPTION_UTILS_H
15 #include "postgres_fe.h"
17 #include "common/file_utils.h"
19 typedef void (*help_handler) (const char *progname);
21 extern void handle_help_version_opts(int argc, char *argv[],
22 const char *fixed_progname,
23 help_handler hlp);
24 extern bool option_parse_int(const char *optarg, const char *optname,
25 int min_range, int max_range,
26 int *result);
27 extern bool parse_sync_method(const char *optarg,
28 DataDirSyncMethod *sync_method);
30 #endif /* OPTION_UTILS_H */