diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-03 10:47:47 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-03 10:47:47 +0100 |
commit | d5b3ae3b0f1d955df7a701d7f6a7546ff20cdc4d (patch) | |
tree | e2a4845ca2effcbe3adf9f8ddb31e991590ed858 | |
parent | e4b8e31ebe760b60dc9b5c4246ed7790075d4c46 (diff) |
fix call to GNUNET_NAMESTORE_records_store and other build issues
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); } |