PostgreSQL Source Code git master
Loading...
Searching...
No Matches
option_utils.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * Command line option processing facilities for frontend code
4 *
5 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
7 *
8 * src/include/fe_utils/option_utils.h
9 *
10 *-------------------------------------------------------------------------
11 */
12#ifndef OPTION_UTILS_H
13#define OPTION_UTILS_H
14
15#include "common/file_utils.h"
16
17typedef void (*help_handler) (const char *progname);
18
19extern void handle_help_version_opts(int argc, char *argv[],
20 const char *fixed_progname,
22extern bool option_parse_int(const char *optarg, const char *optname,
23 int min_range, int max_range,
24 int *result);
25extern bool parse_sync_method(const char *optarg,
27
28#endif /* OPTION_UTILS_H */
DataDirSyncMethod
Definition file_utils.h:28
static DataDirSyncMethod sync_method
Definition initdb.c:170
const char * progname
Definition main.c:44
void(* help_handler)(const char *progname)
bool option_parse_int(const char *optarg, const char *optname, int min_range, int max_range, int *result)
void handle_help_version_opts(int argc, char *argv[], const char *fixed_progname, help_handler hlp)
bool parse_sync_method(const char *optarg, DataDirSyncMethod *sync_method)
PGDLLIMPORT char * optarg
Definition getopt.c:53
static int fb(int x)