gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: fix call to GNUNET_NAMESTORE_records_sto


From: gnunet
Subject: [gnunet] branch master updated: fix call to GNUNET_NAMESTORE_records_store and other build issues
Date: Sun, 03 Mar 2024 10:47:51 +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 d5b3ae3b0 fix call to GNUNET_NAMESTORE_records_store and other build 
issues
d5b3ae3b0 is described below

commit d5b3ae3b0f1d955df7a701d7f6a7546ff20cdc4d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 3 10:47:47 2024 +0100

    fix call to GNUNET_NAMESTORE_records_store and other build issues
---
 src/service/namestore/perf_namestore_api_import.c  |  1 +
 .../namestore/perf_namestore_api_zone_iteration.c  |  1 +
 .../namestore/test_namestore_api_edit_records.c    |  1 +
 .../namestore/test_namestore_api_monitoring.c      |  1 +
 .../test_namestore_api_monitoring_existing.c       |  1 +
 .../namestore/test_namestore_api_zone_to_name.c    |  1 +
 src/service/pt/test_gns_vpn.c                      | 23 ++++++++++++++++------
 7 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/src/service/namestore/perf_namestore_api_import.c 
b/src/service/namestore/perf_namestore_api_import.c
index faa75b5ab..326955dff 100644
--- a/src/service/namestore/perf_namestore_api_import.c
+++ b/src/service/namestore/perf_namestore_api_import.c
@@ -22,6 +22,7 @@
  * @brief testcase for namestore: Import a lot of records
  * @author Martin Schanzenbach
  */
+#include "platform.h"
 #include "gnunet_namestore_service.h"
 #include "gnunet_testing_lib.h"
 
diff --git a/src/service/namestore/perf_namestore_api_zone_iteration.c 
b/src/service/namestore/perf_namestore_api_zone_iteration.c
index cc59ff4c7..532db6e03 100644
--- a/src/service/namestore/perf_namestore_api_zone_iteration.c
+++ b/src/service/namestore/perf_namestore_api_zone_iteration.c
@@ -22,6 +22,7 @@
  * @brief testcase for zone iteration functionality: iterate all zones
  * @author Christian Grothoff
  */
+#include "platform.h"
 #include "gnunet_namestore_service.h"
 #include "gnunet_testing_lib.h"
 
diff --git a/src/service/namestore/test_namestore_api_edit_records.c 
b/src/service/namestore/test_namestore_api_edit_records.c
index 02e821377..398a2ee8a 100644
--- a/src/service/namestore/test_namestore_api_edit_records.c
+++ b/src/service/namestore/test_namestore_api_edit_records.c
@@ -21,6 +21,7 @@
  * @file namestore/test_namestore_api_edit_records.c
  * @brief testcase for namestore_api.c: Multiple clients work with record set.
  */
+#include "platform.h"
 #include "gnunet_error_codes.h"
 #include "gnunet_namestore_service.h"
 #include "gnunet_scheduler_lib.h"
diff --git a/src/service/namestore/test_namestore_api_monitoring.c 
b/src/service/namestore/test_namestore_api_monitoring.c
index 016313148..65c3a2540 100644
--- a/src/service/namestore/test_namestore_api_monitoring.c
+++ b/src/service/namestore/test_namestore_api_monitoring.c
@@ -21,6 +21,7 @@
  * @file namestore/test_namestore_api_monitoring.c
  * @brief testcase for zone monitoring functionality: monitor first, then add 
records
  */
+#include "platform.h"
 #include "gnunet_namestore_service.h"
 #include "gnunet_testing_lib.h"
 
diff --git a/src/service/namestore/test_namestore_api_monitoring_existing.c 
b/src/service/namestore/test_namestore_api_monitoring_existing.c
index 84cdaaa70..4c8b99738 100644
--- a/src/service/namestore/test_namestore_api_monitoring_existing.c
+++ b/src/service/namestore/test_namestore_api_monitoring_existing.c
@@ -21,6 +21,7 @@
  * @file namestore/test_namestore_api_monitoring_existing.c
  * @brief testcase for zone monitoring functionality: add records first, then 
monitor
  */
+#include "platform.h"
 #include "gnunet_namestore_service.h"
 #include "gnunet_testing_lib.h"
 
diff --git a/src/service/namestore/test_namestore_api_zone_to_name.c 
b/src/service/namestore/test_namestore_api_zone_to_name.c
index c05a9173f..eae8be0d6 100644
--- a/src/service/namestore/test_namestore_api_zone_to_name.c
+++ b/src/service/namestore/test_namestore_api_zone_to_name.c
@@ -21,6 +21,7 @@
  * @file namestore/test_namestore_api_zone_to_name.c
  * @brief testcase for zone to name translation
  */
+#include "platform.h"
 #include "gnunet_namestore_service.h"
 #include "gnunet_testing_lib.h"
 
diff --git a/src/service/pt/test_gns_vpn.c b/src/service/pt/test_gns_vpn.c
index 4db7bf274..300f17202 100644
--- a/src/service/pt/test_gns_vpn.c
+++ b/src/service/pt/test_gns_vpn.c
@@ -603,12 +603,23 @@ identity_cb (void *cls,
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Creating `www` record\n");
-  qe = GNUNET_NAMESTORE_records_store (namestore,
-                                       zone_key,
-                                       "www",
-                                       1, &rd,
-                                       &commence_testing,
-                                       NULL);
+  {
+    struct GNUNET_NAMESTORE_RecordInfo ri = {
+      .a_label = "www",
+      .a_rd_count = 1,
+      .a_rd = &rd
+    };
+    unsigned int did_sent;
+
+    qe = GNUNET_NAMESTORE_records_store (namestore,
+                                         zone_key,
+                                         1,
+                                         &ri,
+                                         &did_sent,
+                                         &commence_testing,
+                                         NULL);
+    GNUNET_assert (1 == did_sent);
+  }
   GNUNET_free_nz ((void **) rd.data);
   GNUNET_free (rd_string);
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]