renaming GNUNET_GETOPT-symbols to match latest changes in GNUnet

This commit is contained in:
Christian Grothoff 2017-03-25 21:22:22 +01:00
parent 293cd7a804
commit 8d9dc14227
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
9 changed files with 51 additions and 51 deletions

View File

@ -139,37 +139,37 @@ main (int argc,
{ {
char *cfgfile = NULL; char *cfgfile = NULL;
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_FILENAME ('a', GNUNET_GETOPT_option_filename ('a',
"auditor-key", "auditor-key",
"FILENAME", "FILENAME",
"file containing the private key of the auditor", "file containing the private key of the auditor",
&auditor_key_file), &auditor_key_file),
GNUNET_GETOPT_OPTION_CFG_FILE (&cfgfile), GNUNET_GETOPT_option_cfgfile (&cfgfile),
GNUNET_GETOPT_OPTION_HELP ("Private key of the auditor to use for signing"), GNUNET_GETOPT_option_help ("Private key of the auditor to use for signing"),
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_GETOPT_OPTION_SET_BASE32_AUTO ('m', (GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key", "exchange-key",
"KEY", "KEY",
"public key of the exchange (Crockford base32 encoded)", "public key of the exchange (Crockford base32 encoded)",
&master_public_key)), &master_public_key)),
GNUNET_GETOPT_OPTION_STRING ('u', GNUNET_GETOPT_option_string ('u',
"auditor-url", "auditor-url",
"URL", "URL",
"URL of the auditor (informative link for the user)", "URL of the auditor (informative link for the user)",
&auditor_url), &auditor_url),
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_GETOPT_OPTION_FILENAME ('r', (GNUNET_GETOPT_option_filename ('r',
"exchange-request", "exchange-request",
"FILENAME", "FILENAME",
"set of keys the exchange requested the auditor to sign", "set of keys the exchange requested the auditor to sign",
&exchange_request_file)), &exchange_request_file)),
GNUNET_GETOPT_OPTION_FILENAME ('o', GNUNET_GETOPT_option_filename ('o',
"output", "output",
"FILENAME", "FILENAME",
"where to write our signature", "where to write our signature",
&output_file), &output_file),
GNUNET_GETOPT_OPTION_VERSION (VERSION "-" VCS_VERSION), GNUNET_GETOPT_option_version (VERSION "-" VCS_VERSION),
GNUNET_GETOPT_OPTION_VERBOSE (&verbose), GNUNET_GETOPT_option_verbose (&verbose),
GNUNET_GETOPT_OPTION_END GNUNET_GETOPT_OPTION_END
}; };
struct GNUNET_CRYPTO_EddsaPrivateKey *eddsa_priv; struct GNUNET_CRYPTO_EddsaPrivateKey *eddsa_priv;

View File

@ -3352,13 +3352,13 @@ main (int argc,
char *const *argv) char *const *argv)
{ {
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_GETOPT_OPTION_SET_BASE32_AUTO ('m', (GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key", "exchange-key",
"KEY", "KEY",
"public key of the exchange (Crockford base32 encoded)", "public key of the exchange (Crockford base32 encoded)",
&master_pub)), &master_pub)),
GNUNET_GETOPT_OPTION_SET_ONE ('r', GNUNET_GETOPT_option_flag ('r',
"restart", "restart",
"restart audit from the beginning (required on first run)", "restart audit from the beginning (required on first run)",
&restart), &restart),

View File

@ -1562,34 +1562,34 @@ main (int argc,
struct GNUNET_OS_Process *proc; struct GNUNET_OS_Process *proc;
unsigned int cnt; unsigned int cnt;
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_SET_ONE ('a', GNUNET_GETOPT_option_flag ('a',
"automate", "automate",
"Initialize and start the bank and exchange", "Initialize and start the bank and exchange",
&run_exchange), &run_exchange),
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_GETOPT_OPTION_CFG_FILE (&config_file)), (GNUNET_GETOPT_option_cfgfile (&config_file)),
GNUNET_GETOPT_OPTION_STRING ('e', GNUNET_GETOPT_option_string ('e',
"exchange-uri", "exchange-uri",
"URI", "URI",
"URI of the exchange", "URI of the exchange",
&exchange_uri), &exchange_uri),
GNUNET_GETOPT_OPTION_STRING ('E', GNUNET_GETOPT_option_string ('E',
"exchange-admin-uri", "exchange-admin-uri",
"URI", "URI",
"URI of the administrative interface of the exchange", "URI of the administrative interface of the exchange",
&exchange_admin_uri), &exchange_admin_uri),
GNUNET_GETOPT_OPTION_HELP ("tool to benchmark the Taler exchange"), GNUNET_GETOPT_option_help ("tool to benchmark the Taler exchange"),
GNUNET_GETOPT_OPTION_SET_UINT ('s', GNUNET_GETOPT_option_uint ('s',
"pool-size", "pool-size",
"SIZE", "SIZE",
"How many coins this benchmark should instantiate", "How many coins this benchmark should instantiate",
&pool_size), &pool_size),
GNUNET_GETOPT_OPTION_SET_UINT ('l', GNUNET_GETOPT_option_uint ('l',
"limit", "limit",
"LIMIT", "LIMIT",
"Terminate the benchmark after LIMIT operations", "Terminate the benchmark after LIMIT operations",
&num_iterations), &num_iterations),
GNUNET_GETOPT_OPTION_VERBOSE (&be_verbose), GNUNET_GETOPT_option_verbose (&be_verbose),
GNUNET_GETOPT_OPTION_END GNUNET_GETOPT_OPTION_END
}; };
int ret; int ret;

View File

@ -96,11 +96,11 @@ main (int argc,
char *const *argv) char *const *argv)
{ {
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_SET_ONE ('r', GNUNET_GETOPT_option_flag ('r',
"reset", "reset",
"reset database (DANGEROUS: all existing data is lost!)", "reset database (DANGEROUS: all existing data is lost!)",
&reset_db), &reset_db),
GNUNET_GETOPT_OPTION_SET_ONE ('g', GNUNET_GETOPT_option_flag ('g',
"gc", "gc",
"garbage collect database", "garbage collect database",
&gc_db), &gc_db),

View File

@ -1211,22 +1211,22 @@ main (int argc,
char *const *argv) char *const *argv)
{ {
struct GNUNET_GETOPT_CommandLineOption options[] = { struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_FILENAME ('m', GNUNET_GETOPT_option_filename ('m',
"master-key", "master-key",
"FILENAME", "FILENAME",
"master key file (private key)", "master key file (private key)",
&masterkeyfile), &masterkeyfile),
GNUNET_GETOPT_OPTION_FILENAME ('f', GNUNET_GETOPT_option_filename ('f',
"feedir", "feedir",
"DIRNAME", "DIRNAME",
"directory where to write wire transfer fee structure", "directory where to write wire transfer fee structure",
&feedir), &feedir),
GNUNET_GETOPT_OPTION_FILENAME ('o', GNUNET_GETOPT_option_filename ('o',
"output", "output",
"FILENAME", "FILENAME",
"auditor denomination key signing request file to create", "auditor denomination key signing request file to create",
&auditorrequestfile), &auditorrequestfile),
GNUNET_GETOPT_OPTION_SET_ABSOLUTE_TIME ('t', GNUNET_GETOPT_option_absolute_time ('t',
"time", "time",
"TIMESTAMP", "TIMESTAMP",
"pretend it is a different time for the update", "pretend it is a different time for the update",

View File

@ -167,27 +167,27 @@ int
main (int argc, char *const *argv) main (int argc, char *const *argv)
{ {
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(TALER_getopt_get_amount ('a', (TALER_getopt_get_amount ('a',
"add", "add",
"DENOM", "DENOM",
"value to add", "value to add",
&add_value)), &add_value)),
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_JSON_getopt ('s', (GNUNET_JSON_getopt ('s',
"sender", "sender",
"JSON", "JSON",
"details about the sender's bank account", "details about the sender's bank account",
&sender_details)), &sender_details)),
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_JSON_getopt ('t', (GNUNET_JSON_getopt ('t',
"transfer", "transfer",
"JSON", "JSON",
"details that uniquely identify the bank transfer", "details that uniquely identify the bank transfer",
&transfer_details)), &transfer_details)),
GNUNET_GETOPT_OPTION_HELP ("Deposit funds into a Taler reserve"), GNUNET_GETOPT_option_help ("Deposit funds into a Taler reserve"),
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_GETOPT_OPTION_SET_BASE32_AUTO ('R', (GNUNET_GETOPT_option_base32_auto ('R',
"reserve", "reserve",
"KEY", "KEY",
"reserve (public key) to modify", "reserve (public key) to modify",

View File

@ -206,23 +206,23 @@ main (int argc,
char *const *argv) char *const *argv)
{ {
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_MANDATORY GNUNET_GETOPT_option_mandatory
(GNUNET_JSON_getopt ('j', (GNUNET_JSON_getopt ('j',
"json", "json",
"JSON", "JSON",
"account information in JSON format", "account information in JSON format",
&account_holder)), &account_holder)),
GNUNET_GETOPT_OPTION_FILENAME ('m', GNUNET_GETOPT_option_filename ('m',
"master-key", "master-key",
"FILENAME", "FILENAME",
"master key file (private key)", "master key file (private key)",
&masterkeyfile), &masterkeyfile),
GNUNET_GETOPT_OPTION_STRING ('t', GNUNET_GETOPT_option_string ('t',
"type", "type",
"METHOD", "METHOD",
"which wire transfer method (i.e. 'test' or 'sepa') is this for?", "which wire transfer method (i.e. 'test' or 'sepa') is this for?",
&method), &method),
GNUNET_GETOPT_OPTION_FILENAME ('o', GNUNET_GETOPT_option_filename ('o',
"output", "output",
"FILENAME", "FILENAME",
"where to write the result", "where to write the result",

View File

@ -1237,11 +1237,11 @@ main (int argc,
char *const *argv) char *const *argv)
{ {
struct GNUNET_GETOPT_CommandLineOption options[] = { struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_SET_ONE ('t', GNUNET_GETOPT_option_flag ('t',
"test", "test",
"run in test mode and exit when idle", "run in test mode and exit when idle",
&test_mode), &test_mode),
GNUNET_GETOPT_OPTION_VERSION (VERSION "-" VCS_VERSION), GNUNET_GETOPT_option_version (VERSION "-" VCS_VERSION),
GNUNET_GETOPT_OPTION_END GNUNET_GETOPT_OPTION_END
}; };

View File

@ -934,35 +934,35 @@ main (int argc,
char *loglev = NULL; char *loglev = NULL;
char *logfile = NULL; char *logfile = NULL;
const struct GNUNET_GETOPT_CommandLineOption options[] = { const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_SET_ONE ('C', GNUNET_GETOPT_option_flag ('C',
"connection-close", "connection-close",
"force HTTP connections to be closed after each request", "force HTTP connections to be closed after each request",
&TEH_exchange_connection_close), &TEH_exchange_connection_close),
GNUNET_GETOPT_OPTION_CFG_FILE (&cfgfile), GNUNET_GETOPT_option_cfgfile (&cfgfile),
GNUNET_GETOPT_OPTION_SET_ONE ('D', GNUNET_GETOPT_option_flag ('D',
"disable-admin", "disable-admin",
"do not run the /admin-HTTP server", "do not run the /admin-HTTP server",
&no_admin), &no_admin),
GNUNET_GETOPT_OPTION_SET_ONE ('i', GNUNET_GETOPT_option_flag ('i',
"init-db", "init-db",
"create database tables and indicies if necessary", "create database tables and indicies if necessary",
&init_db), &init_db),
GNUNET_GETOPT_OPTION_SET_UINT ('t', GNUNET_GETOPT_option_uint ('t',
"timeout", "timeout",
"SECONDS", "SECONDS",
"after how long do connections timeout by default (in seconds)", "after how long do connections timeout by default (in seconds)",
&connection_timeout), &connection_timeout),
#if HAVE_DEVELOPER #if HAVE_DEVELOPER
GNUNET_GETOPT_OPTION_FILENAME ('f', GNUNET_GETOPT_option_filename ('f',
"file-input", "file-input",
"FILENAME", "FILENAME",
"run in test-mode using FILENAME as the HTTP request to process", "run in test-mode using FILENAME as the HTTP request to process",
&input_filename), &input_filename),
#endif #endif
GNUNET_GETOPT_OPTION_HELP ("HTTP server providing a RESTful API to access a Taler exchange"), GNUNET_GETOPT_option_help ("HTTP server providing a RESTful API to access a Taler exchange"),
GNUNET_GETOPT_OPTION_LOGLEVEL (&loglev), GNUNET_GETOPT_option_loglevel (&loglev),
GNUNET_GETOPT_OPTION_LOGFILE (&logfile), GNUNET_GETOPT_option_logfile (&logfile),
GNUNET_GETOPT_OPTION_VERSION (VERSION "-" VCS_VERSION), GNUNET_GETOPT_option_version (VERSION "-" VCS_VERSION),
GNUNET_GETOPT_OPTION_END GNUNET_GETOPT_OPTION_END
}; };
int ret; int ret;