diff options
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r-- | src/include/gnunet_json_lib.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h index 9e5f9e2848..ce721d8d81 100644 --- a/src/include/gnunet_json_lib.h +++ b/src/include/gnunet_json_lib.h @@ -427,6 +427,26 @@ void GNUNET_JSON_post_parser_cleanup (void *con_cls); +/* ****************** GETOPT JSON helper ******************* */ + + +/** + * Allow user to specify a JSON input value. + * + * @param shortName short name of the option + * @param name long name of the option + * @param argumentHelp help text for the option argument + * @param description long help text for the option + * @param[out] val set to the JSON specified at the command line + */ +struct GNUNET_GETOPT_CommandLineOption +GNUNET_JSON_getopt (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + json_t **json); + + #endif /* end of gnunet_json_lib.h */ |