diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-14 15:59:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-14 15:59:12 +0100 |
commit | 99779b455ce3bf9c53dd411575766bf298a3a5f3 (patch) | |
tree | 12cd49f097fdd1947580b08ec10ca961f8c250b9 /src/include/gnunet_getopt_lib.h | |
parent | 8c702327dae9e504e0f6e1678884d9327321f44a (diff) | |
download | gnunet-99779b455ce3bf9c53dd411575766bf298a3a5f3.tar.gz gnunet-99779b455ce3bf9c53dd411575766bf298a3a5f3.zip |
introducing GNUNET_TIME_Timestamp
Diffstat (limited to 'src/include/gnunet_getopt_lib.h')
-rw-r--r-- | src/include/gnunet_getopt_lib.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index 731be4159..259d648dd 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h | |||
@@ -378,6 +378,24 @@ GNUNET_GETOPT_option_absolute_time (char shortName, | |||
378 | 378 | ||
379 | 379 | ||
380 | /** | 380 | /** |
381 | * Allow user to specify a `struct GNUNET_TIME_Timestamp` | ||
382 | * (using human-readable "fancy" time). | ||
383 | * | ||
384 | * @param shortName short name of the option | ||
385 | * @param name long name of the option | ||
386 | * @param argumentHelp help text for the option argument | ||
387 | * @param description long help text for the option | ||
388 | * @param[out] val set to the time specified at the command line | ||
389 | */ | ||
390 | struct GNUNET_GETOPT_CommandLineOption | ||
391 | GNUNET_GETOPT_option_timestamp (char shortName, | ||
392 | const char *name, | ||
393 | const char *argumentHelp, | ||
394 | const char *description, | ||
395 | struct GNUNET_TIME_Timestamp *val); | ||
396 | |||
397 | |||
398 | /** | ||
381 | * Increment @a val each time the option flag is given by one. | 399 | * Increment @a val each time the option flag is given by one. |
382 | * | 400 | * |
383 | * @param shortName short name of the option | 401 | * @param shortName short name of the option |