command line tool to manipulate the database backends for the namestore More...
Go to the source code of this file.
Functions | |
static void | do_shutdown (void *cls) |
Task run on shutdown. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Main function that will be run. More... | |
int | main (int argc, char *const *argv) |
The main function for gnunet-namestore-dbtool. More... | |
Variables | |
static char * | pluginname |
Name of the plugin argument. More... | |
static int | reset |
Reset argument. More... | |
static int | init |
Initialize argument. More... | |
static int | ret = 0 |
Return code. More... | |
command line tool to manipulate the database backends for the namestore
Definition in file gnunet-namestore-dbtool.c.
|
static |
Task run on shutdown.
Cleans up everything.
cls | unused |
Definition at line 56 of file gnunet-namestore-dbtool.c.
References GNUNET_free, and pluginname.
Referenced by run().
|
static |
Main function that will be run.
cls | closure |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 73 of file gnunet-namestore-dbtool.c.
References _, consensus-simulation::args, cfg, GNUNET_NAMESTORE_PluginFunctions::cls, GNUNET_TESTING_PluginFunctions::cls, db_lib_name, do_shutdown(), GNUNET_asprintf(), GNUNET_break, GNUNET_ERROR_TYPE_WARNING, GNUNET_free, GNUNET_log, GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PLUGIN_load(), GNUNET_PLUGIN_unload(), GNUNET_SCHEDULER_add_shutdown(), GNUNET_SCHEDULER_shutdown(), init, plugin, pluginname, reset, and ret.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function for gnunet-namestore-dbtool.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 156 of file gnunet-namestore-dbtool.c.
References _, gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_string(), GNUNET_log_setup(), GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), init, options, pluginname, reset, ret, and run().
|
static |
Name of the plugin argument.
Definition at line 33 of file gnunet-namestore-dbtool.c.
Referenced by do_shutdown(), main(), and run().
|
static |
Reset argument.
Definition at line 38 of file gnunet-namestore-dbtool.c.
Referenced by handle_member_id(), join_room(), main(), notify_srv_handle_member_id(), and run().
|
static |
Initialize argument.
Definition at line 43 of file gnunet-namestore-dbtool.c.
|
static |
Return code.
Definition at line 48 of file gnunet-namestore-dbtool.c.