summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-06 15:22:13 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-06 15:22:13 +0100
commit4103a2bf2aef3fb3a6059a99e0a941bc35406cfb (patch)
treedd1b84c53b13e9f348a76b626a06421b47bdc4d4 /src
parentc0ccb5ea455f6e0fc446dfe4b744b3447e002a27 (diff)
template for Patrick
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,
}
+#if 0
+/* globals? */
+unsigned int rd_count;
+struct GNUNET_GNSRECORD_Data *rd;
+
+
+rd_count = 0;
+for (struct RecordSetEntry *e = recordset; NULL != e; e = e->next)
+ rd_count++;
+rd = GNUNET_new_array (rd_count,
+ struct GNUNET_GNSRECORD_Data);
+rd_count = 0;
+for (struct RecordSetEntry *e = recordset; NULL != e; e = e->next)
+{
+ rd[rd_count] = e->record;
+ rd_count++;
+}
+
+/* if add: */
+qe = GNUNET_NAMESTORE_records_store (...,
+ rd_count,
+ rd,
+ &my_cont
+ ..);
+
+in 'my_cont' and/or shutdown:
+
+qe = NULL;
+GNUNET_free (rd);
+
+in shutdown:
+
+if NULL != qe NAMESTORE_cancel (qe);
+GNUNET_free (rd);
+
+#endif
+
+
/**
* Callback invoked from identity service with ego information.
* An @a ego of NULL means the ego was not found.