diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-06 15:22:13 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-06 15:22:13 +0100 |
commit | 4103a2bf2aef3fb3a6059a99e0a941bc35406cfb (patch) | |
tree | dd1b84c53b13e9f348a76b626a06421b47bdc4d4 /src | |
parent | c0ccb5ea455f6e0fc446dfe4b744b3447e002a27 (diff) | |
download | gnunet-4103a2bf2aef3fb3a6059a99e0a941bc35406cfb.tar.gz gnunet-4103a2bf2aef3fb3a6059a99e0a941bc35406cfb.zip |
template for Patrick
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 0f0660edc..865481746 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -936,6 +936,44 @@ parse_expiration (const char *expirationstring, | |||
936 | } | 936 | } |
937 | 937 | ||
938 | 938 | ||
939 | #if 0 | ||
940 | /* globals? */ | ||
941 | unsigned int rd_count; | ||
942 | struct GNUNET_GNSRECORD_Data *rd; | ||
943 | |||
944 | |||
945 | rd_count = 0; | ||
946 | for (struct RecordSetEntry *e = recordset; NULL != e; e = e->next) | ||
947 | rd_count++; | ||
948 | rd = GNUNET_new_array (rd_count, | ||
949 | struct GNUNET_GNSRECORD_Data); | ||
950 | rd_count = 0; | ||
951 | for (struct RecordSetEntry *e = recordset; NULL != e; e = e->next) | ||
952 | { | ||
953 | rd[rd_count] = e->record; | ||
954 | rd_count++; | ||
955 | } | ||
956 | |||
957 | /* if add: */ | ||
958 | qe = GNUNET_NAMESTORE_records_store (..., | ||
959 | rd_count, | ||
960 | rd, | ||
961 | &my_cont | ||
962 | ..); | ||
963 | |||
964 | in 'my_cont' and/or shutdown: | ||
965 | |||
966 | qe = NULL; | ||
967 | GNUNET_free (rd); | ||
968 | |||
969 | in shutdown: | ||
970 | |||
971 | if NULL != qe NAMESTORE_cancel (qe); | ||
972 | GNUNET_free (rd); | ||
973 | |||
974 | #endif | ||
975 | |||
976 | |||
939 | /** | 977 | /** |
940 | * Callback invoked from identity service with ego information. | 978 | * Callback invoked from identity service with ego information. |
941 | * An @a ego of NULL means the ego was not found. | 979 | * An @a ego of NULL means the ego was not found. |