aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_getopt_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-06 10:23:52 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-06 10:23:52 +0000
commit4c76da6eb5ec850f0e5947f1fd1a42b7543cf8ef (patch)
tree5c152f80b55f7b38958135dd665eeeaf7086d5eb /src/include/gnunet_getopt_lib.h
parente81a1e569010d1a3161ef91a914c780e71230537 (diff)
downloadgnunet-4c76da6eb5ec850f0e5947f1fd1a42b7543cf8ef.tar.gz
gnunet-4c76da6eb5ec850f0e5947f1fd1a42b7543cf8ef.zip
-fix #3158
Diffstat (limited to 'src/include/gnunet_getopt_lib.h')
-rw-r--r--src/include/gnunet_getopt_lib.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h
index a6650fe03..71d7c8d66 100644
--- a/src/include/gnunet_getopt_lib.h
+++ b/src/include/gnunet_getopt_lib.h
@@ -87,8 +87,8 @@ struct GNUNET_GETOPT_CommandLineProcessorContext
87 * @return #GNUNET_OK to continue processing other options, #GNUNET_SYSERR to abort 87 * @return #GNUNET_OK to continue processing other options, #GNUNET_SYSERR to abort
88 */ 88 */
89typedef int (*GNUNET_GETOPT_CommandLineOptionProcessor) (struct 89typedef int (*GNUNET_GETOPT_CommandLineOptionProcessor) (struct
90 GNUNET_GETOPT_CommandLineProcessorContext 90 GNUNET_GETOPT_CommandLineProcessorContext *ctx,
91 * ctx, void *scls, 91 void *scls,
92 const char *option, 92 const char *option,
93 const char *value); 93 const char *value);
94 94
@@ -99,7 +99,7 @@ struct GNUNET_GETOPT_CommandLineOption
99{ 99{
100 100
101 /** 101 /**
102 * Short name of the option (use '\\0' for none). 102 * Short name of the option.
103 */ 103 */
104 const char shortName; 104 const char shortName;
105 105
@@ -119,7 +119,7 @@ struct GNUNET_GETOPT_CommandLineOption
119 const char *description; 119 const char *description;
120 120
121 /** 121 /**
122 * Is an argument required? 0: GNUNET_NO (includes optional), 1: GNUNET_YES. 122 * Is an argument required? 0: #GNUNET_NO (includes optional), 1: #GNUNET_YES.
123 */ 123 */
124 int require_argument; 124 int require_argument;
125 125
@@ -217,9 +217,9 @@ GNUNET_GETOPT_run (const char *binaryOptions,
217/** 217/**
218 * Set an option of type 'unsigned long long' from the command line. 218 * Set an option of type 'unsigned long long' from the command line.
219 * A pointer to this function should be passed as part of the 219 * A pointer to this function should be passed as part of the
220 * 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options 220 * `struct GNUNET_GETOPT_CommandLineOption` array to initialize options
221 * of this type. It should be followed by a pointer to a value of 221 * of this type. It should be followed by a pointer to a value of
222 * type 'unsigned long long'. 222 * type `unsigned long long`.
223 * 223 *
224 * @param ctx command line processing context 224 * @param ctx command line processing context
225 * @param scls additional closure (will point to the 'unsigned long long') 225 * @param scls additional closure (will point to the 'unsigned long long')
@@ -235,9 +235,9 @@ GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
235/** 235/**
236 * Set an option of type 'struct GNUNET_TIME_Relative' from the command line. 236 * Set an option of type 'struct GNUNET_TIME_Relative' from the command line.
237 * A pointer to this function should be passed as part of the 237 * A pointer to this function should be passed as part of the
238 * 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options 238 * `struct GNUNET_GETOPT_CommandLineOption` array to initialize options
239 * of this type. It should be followed by a pointer to a value of 239 * of this type. It should be followed by a pointer to a value of
240 * type 'struct GNUNET_TIME_Relative'. 240 * type `struct GNUNET_TIME_Relative`.
241 * 241 *
242 * @param ctx command line processing context 242 * @param ctx command line processing context
243 * @param scls additional closure (will point to the 'struct GNUNET_TIME_Relative') 243 * @param scls additional closure (will point to the 'struct GNUNET_TIME_Relative')
@@ -253,9 +253,9 @@ GNUNET_GETOPT_set_relative_time (struct GNUNET_GETOPT_CommandLineProcessorContex
253/** 253/**
254 * Set an option of type 'unsigned int' from the command line. 254 * Set an option of type 'unsigned int' from the command line.
255 * A pointer to this function should be passed as part of the 255 * A pointer to this function should be passed as part of the
256 * 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options 256 * `struct GNUNET_GETOPT_CommandLineOption` array to initialize options
257 * of this type. It should be followed by a pointer to a value of 257 * of this type. It should be followed by a pointer to a value of
258 * type 'unsigned int'. 258 * type `unsigned int`.
259 * 259 *
260 * @param ctx command line processing context 260 * @param ctx command line processing context
261 * @param scls additional closure (will point to the 'unsigned int') 261 * @param scls additional closure (will point to the 'unsigned int')
@@ -272,12 +272,12 @@ GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
272 * Set an option of type 'int' from the command line to 1 if the 272 * Set an option of type 'int' from the command line to 1 if the
273 * given option is present. 273 * given option is present.
274 * A pointer to this function should be passed as part of the 274 * A pointer to this function should be passed as part of the
275 * 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options 275 * `struct GNUNET_GETOPT_CommandLineOption` array to initialize options
276 * of this type. It should be followed by a pointer to a value of 276 * of this type. It should be followed by a pointer to a value of
277 * type 'int'. 277 * type `int`.
278 * 278 *
279 * @param ctx command line processing context 279 * @param ctx command line processing context
280 * @param scls additional closure (will point to the 'int') 280 * @param scls additional closure (will point to the `int`)
281 * @param option name of the option 281 * @param option name of the option
282 * @param value not used (NULL) 282 * @param value not used (NULL)
283 * @return #GNUNET_OK (always) 283 * @return #GNUNET_OK (always)
@@ -290,12 +290,12 @@ GNUNET_GETOPT_set_one (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
290/** 290/**
291 * Set an option of type 'char *' from the command line. 291 * Set an option of type 'char *' from the command line.
292 * A pointer to this function should be passed as part of the 292 * A pointer to this function should be passed as part of the
293 * 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options 293 * `struct GNUNET_GETOPT_CommandLineOption` array to initialize options
294 * of this type. It should be followed by a pointer to a value of 294 * of this type. It should be followed by a pointer to a value of
295 * type 'char *', which will be allocated with the requested string. 295 * type `char *`, which will be allocated with the requested string.
296 * 296 *
297 * @param ctx command line processing context 297 * @param ctx command line processing context
298 * @param scls additional closure (will point to the 'char *', 298 * @param scls additional closure (will point to the `char *`,
299 * which will be allocated) 299 * which will be allocated)
300 * @param option name of the option 300 * @param option name of the option
301 * @param value actual value of the option (a string) 301 * @param value actual value of the option (a string)