tool to create a new auction More...
Go to the source code of this file.
Macros | |
#define | FIRST_PRICE 0 |
#define | OUTCOME_PRIVATE 0 |
#define | OUTCOME_PUBLIC 1 |
Functions | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
keep running in foreground More... | |
int | main (int argc, char *const *argv) |
The main function. More... | |
Variables | |
static int | ret |
static char * | fndesc |
Final status code. More... | |
static char * | fnprices |
filename of the item description More... | |
static struct GNUNET_TIME_Relative | dround |
filename of the price map More... | |
static struct GNUNET_TIME_Relative | dstart |
max round duration More... | |
static unsigned int | m = 0 |
time until auction starts More... | |
static int | outcome = 0 |
auction parameter m More... | |
static int | interactive |
outcome More... | |
tool to create a new auction
Definition in file gnunet-auction-create.c.
#define FIRST_PRICE 0 |
Definition at line 34 of file gnunet-auction-create.c.
#define OUTCOME_PRIVATE 0 |
Definition at line 35 of file gnunet-auction-create.c.
#define OUTCOME_PUBLIC 1 |
Definition at line 36 of file gnunet-auction-create.c.
|
static |
keep running in foreground
Main function that will be run by the scheduler.
cls | closure |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 57 of file gnunet-auction-create.c.
References dround, dstart, fndesc, fnprices, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, GNUNET_TIME_UNIT_ZERO, pmap, GNUNET_TIME_Relative::rel_value_us, and ret.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 156 of file gnunet-auction-create.c.
References dround, dstart, fndesc, fnprices, gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_filename(), GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_relative_time(), GNUNET_GETOPT_option_uint(), GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), interactive, m, options, outcome, ret, and run().
|
static |
Definition at line 38 of file gnunet-auction-create.c.
|
static |
Final status code.
Definition at line 39 of file gnunet-auction-create.c.
|
static |
filename of the item description
Definition at line 40 of file gnunet-auction-create.c.
|
static |
filename of the price map
Definition at line 41 of file gnunet-auction-create.c.
|
static |
max round duration
Definition at line 42 of file gnunet-auction-create.c.
|
static |
time until auction starts
Definition at line 43 of file gnunet-auction-create.c.
Referenced by main().
|
static |
|
static |