aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-04 15:47:01 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-04 15:47:01 +0100
commite14544109bf1c473a0e32d6c3b0e84dec8989efc (patch)
tree6f7701cf0e75857951c34b6921ae28dbdc3a7740 /src/include
parente3dcec36a06dec9ca7b8f4f43ff247633167d3df (diff)
downloadgnunet-e14544109bf1c473a0e32d6c3b0e84dec8989efc.tar.gz
gnunet-e14544109bf1c473a0e32d6c3b0e84dec8989efc.zip
add timetravel getopt helper
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_getopt_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h
index 0d6ed4fc7..b37827ccc 100644
--- a/src/include/gnunet_getopt_lib.h
+++ b/src/include/gnunet_getopt_lib.h
@@ -164,6 +164,20 @@ GNUNET_GETOPT_option_help (const char *about);
164 164
165 165
166/** 166/**
167 * Allow user to specify a `long long` with an offset to add to the current
168 * system time to construct the time seen by the application. Used for
169 * debugging / testing.
170 *
171 * @param shortName short name of the option
172 * @param name long name of the option
173 * @param[out] val set to the time specified at the command line
174 */
175struct GNUNET_GETOPT_CommandLineOption
176GNUNET_GETOPT_option_timetravel (char shortName,
177 const char *name);
178
179
180/**
167 * Define the option to print the version of 181 * Define the option to print the version of
168 * the application (-v option) 182 * the application (-v option)
169 * 183 *