aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/namestore/gnunet-namestore.c38
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? */
941unsigned int rd_count;
942struct GNUNET_GNSRECORD_Data *rd;
943
944
945rd_count = 0;
946for (struct RecordSetEntry *e = recordset; NULL != e; e = e->next)
947 rd_count++;
948rd = GNUNET_new_array (rd_count,
949 struct GNUNET_GNSRECORD_Data);
950rd_count = 0;
951for (struct RecordSetEntry *e = recordset; NULL != e; e = e->next)
952{
953 rd[rd_count] = e->record;
954 rd_count++;
955}
956
957/* if add: */
958qe = GNUNET_NAMESTORE_records_store (...,
959 rd_count,
960 rd,
961 &my_cont
962 ..);
963
964in 'my_cont' and/or shutdown:
965
966qe = NULL;
967GNUNET_free (rd);
968
969in shutdown:
970
971if NULL != qe NAMESTORE_cancel (qe);
972GNUNET_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.