aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_json_lib.h
diff options
context:
space:
mode:
authorPhil <phil.buschmann@tum.de>2018-07-03 10:47:40 +0200
committerPhil <phil.buschmann@tum.de>2018-07-03 10:47:40 +0200
commit6efdf409484a0b694bb3d6bcf95b1891f70886fb (patch)
treec7f19c59dc64109c0460d168123ec50806b81aad /src/include/gnunet_json_lib.h
parent6ede545d597509fefcc3d4fd2ef865bc5f57603f (diff)
downloadgnunet-6efdf409484a0b694bb3d6bcf95b1891f70886fb.tar.gz
gnunet-6efdf409484a0b694bb3d6bcf95b1891f70886fb.zip
-wip namestore
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r--src/include/gnunet_json_lib.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h
index 06749590c..6340d1f41 100644
--- a/src/include/gnunet_json_lib.h
+++ b/src/include/gnunet_json_lib.h
@@ -479,6 +479,70 @@ GNUNET_JSON_getopt (char shortName,
479 const char *description, 479 const char *description,
480 json_t **json); 480 json_t **json);
481 481
482/* ****************** GETOPT JSON parser ******************* */
483
484struct GNUNET_REST_JSON_Data
485{
486 /**
487 * Public key of an identity
488 */
489 char *pubkey;
490
491 /**
492 * Name
493 */
494 char *name;
495
496 /**
497 * Nickname
498 */
499 char *nickname;
500
501 /**
502 * New name
503 */
504 char *new_name;
505
506 /**
507 * Name of subsystem
508 */
509 char *subsystem;
510
511 /**
512 * Should data be handled as public (GNUNET_YES or GNUNET_NO)
513 */
514 int is_public;
515
516 /**
517 * Expiration date of data
518 */
519 char *expiration_time;
520
521 /**
522 * Type of data
523 */
524 char *type;
525
526 /**
527 * Value of data
528 */
529 char *value;
530
531 /**
532 * Zone
533 */
534 char *zone;
535};
536/*
537 * Test
538 */
539int
540GNUNET_REST_JSON_parse (struct GNUNET_REST_JSON_Data** rest_json_data,
541 json_t *json_data);
542
543int
544GNUNET_REST_JSON_free (struct GNUNET_REST_JSON_Data* rest_json_data);
545
482 546
483#endif 547#endif
484 548