diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 15:26:57 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 15:26:57 +0100 |
commit | 1c4f90e7c538f1489ea17be3d2f655c2390d7ccf (patch) | |
tree | 9a8dc8245d1ffe456076cc8612754d0d9dd7298f /src/include/gnunet_fs_service.h | |
parent | 04a46ba5acf180be6f3a7d85cd6f6ce0ff13b1ba (diff) | |
download | gnunet-1c4f90e7c538f1489ea17be3d2f655c2390d7ccf.tar.gz gnunet-1c4f90e7c538f1489ea17be3d2f655c2390d7ccf.zip |
porting gnunet-publish + others..
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r-- | src/include/gnunet_fs_service.h | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index a9c7e8944..ac418072e 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -438,23 +438,36 @@ GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_CONTAINER_MetaData | |||
438 | /* ******************** command-line option parsing API *********************** */ | 438 | /* ******************** command-line option parsing API *********************** */ |
439 | 439 | ||
440 | /** | 440 | /** |
441 | * Command-line option parser function that allows the user | 441 | * Allow user to specify keywords. |
442 | * to specify one or more '-k' options with keywords. Each | 442 | * |
443 | * specified keyword will be added to the URI. A pointer to | 443 | * @param shortName short name of the option |
444 | * the URI must be passed as the "scls" argument. | 444 | * @param name long name of the option |
445 | * | 445 | * @param argumentHelp help text for the option argument |
446 | * @param ctx command line processor context | 446 | * @param description long help text for the option |
447 | * @param scls must be of type "struct GNUNET_FS_Uri **" | 447 | * @param[out] topKeywords set to the desired value |
448 | * @param option name of the option (typically 'k') | 448 | */ |
449 | * @param value command line argument given | 449 | struct GNUNET_GETOPT_CommandLineOption |
450 | * @return #GNUNET_OK on success | 450 | GNUNET_FS_GETOPT_KEYWORDS (char shortName, |
451 | */ | 451 | const char *name, |
452 | int | 452 | const char *argumentHelp, |
453 | GNUNET_FS_getopt_set_keywords (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, | 453 | const char *description, |
454 | void *scls, | 454 | struct GNUNET_FS_Uri **topKeywords); |
455 | const char *option, | 455 | |
456 | const char *value); | 456 | /** |
457 | 457 | * Allow user to specify metadata. | |
458 | * | ||
459 | * @param shortName short name of the option | ||
460 | * @param name long name of the option | ||
461 | * @param argumentHelp help text for the option argument | ||
462 | * @param description long help text for the option | ||
463 | * @param[out] metadata set to the desired value | ||
464 | */ | ||
465 | struct GNUNET_GETOPT_CommandLineOption | ||
466 | GNUNET_FS_GETOPT_METADATA (char shortName, | ||
467 | const char *name, | ||
468 | const char *argumentHelp, | ||
469 | const char *description, | ||
470 | struct GNUNET_CONTAINER_MetaData **meta); | ||
458 | 471 | ||
459 | /** | 472 | /** |
460 | * Command-line option parser function that allows the user to specify | 473 | * Command-line option parser function that allows the user to specify |