[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: template for Patrick
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: template for Patrick |
Date: |
Tue, 06 Nov 2018 15:22:14 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 4103a2bf2 template for Patrick
4103a2bf2 is described below
commit 4103a2bf2aef3fb3a6059a99e0a941bc35406cfb
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Nov 6 15:22:13 2018 +0100
template for Patrick
---
src/namestore/gnunet-namestore.c | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
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.
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: template for Patrick,
gnunet <=