tool to access and manipulate GNUnet configuration files More...
Go to the source code of this file.
Functions | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Print each option in a given section. More... | |
int | main (int argc, char *const *argv) |
Program to manipulate configuration files. More... | |
Variables | |
static char * | backend_check |
Backend to check if the respective plugin is loadable. More... | |
static int | cflags |
If printing the value of CFLAGS has been requested. More... | |
static int | is_experimental |
Check if this is an experimental build. More... | |
static int | libs |
If printing the value of LIBS has been requested. More... | |
static int | prefix |
If printing the value of PREFIX has been requested. More... | |
tool to access and manipulate GNUnet configuration files
Definition in file gnunet-config.c.
|
static |
Print each option in a given section.
Main task to run to perform operations typical for gnunet-config as per the configuration settings given in cls.
cls | closure with the struct GNUNET_CONFIGURATION_ConfigSettings |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 75 of file gnunet-config.c.
References consensus-simulation::args, backend_check, cfg, cflags, GNUNET_CONFIGURATION_ConfigSettings::global_ret, GNUNET_asprintf(), GNUNET_CONFIGURATION_config_tool_run(), GNUNET_free, GNUNET_OK, GNUNET_OS_installation_get_path(), GNUNET_OS_IPK_LIBDIR, GNUNET_OS_IPK_PREFIX, GNUNET_PLUGIN_test(), is_experimental, libs, name, and prefix.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
Program to manipulate configuration files.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 140 of file gnunet-config.c.
References GNUNET_CONFIGURATION_ConfigSettings::api_version, backend_check, cflags, EXIT_INVALIDARGUMENT, gettext_noop, GNUNET_CONFIGURATION_ConfigSettings::global_ret, GNUNET_CONFIGURATION_CONFIG_OPTIONS, GNUNET_CONFIGURATION_config_settings_free(), GNUNET_free_nz, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_exclusive(), GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_string(), GNUNET_NO, GNUNET_OK, GNUNET_PROGRAM_run(), GNUNET_STRINGS_get_utf8_args(), GNUNET_SYSERR, GNUNET_UTIL_VERSION, is_experimental, libs, options, prefix, ret, and run().
|
static |
Backend to check if the respective plugin is loadable.
NULL if no check is to be performed. The value is the "basename" of the plugin to load.
Definition at line 36 of file gnunet-config.c.
|
static |
If printing the value of CFLAGS has been requested.
Definition at line 42 of file gnunet-config.c.
|
static |
Check if this is an experimental build.
Definition at line 47 of file gnunet-config.c.
|
static |
If printing the value of LIBS has been requested.
Definition at line 53 of file gnunet-config.c.
|
static |
If printing the value of PREFIX has been requested.
Definition at line 59 of file gnunet-config.c.
Referenced by connect_peers_run(), create_keys(), expand_dollar(), get_connect_value(), GNUNET_TESTING_get_address(), GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue(), handle_intermediate_result(), lookup_communicator(), main(), run(), store_prefix_file_name(), and suggest_to_connect().