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) | |
download | gnunet-d5b3ae3b0f1d955df7a701d7f6a7546ff20cdc4d.tar.gz gnunet-d5b3ae3b0f1d955df7a701d7f6a7546ff20cdc4d.zip |
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 @@ | |||
22 | * @brief testcase for namestore: Import a lot of records | 22 | * @brief testcase for namestore: Import a lot of records |
23 | * @author Martin Schanzenbach | 23 | * @author Martin Schanzenbach |
24 | */ | 24 | */ |
25 | #include "platform.h" | ||
25 | #include "gnunet_namestore_service.h" | 26 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
27 | 28 | ||
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 @@ | |||
22 | * @brief testcase for zone iteration functionality: iterate all zones | 22 | * @brief testcase for zone iteration functionality: iterate all zones |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | */ | 24 | */ |
25 | #include "platform.h" | ||
25 | #include "gnunet_namestore_service.h" | 26 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
27 | 28 | ||
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 @@ | |||
21 | * @file namestore/test_namestore_api_edit_records.c | 21 | * @file namestore/test_namestore_api_edit_records.c |
22 | * @brief testcase for namestore_api.c: Multiple clients work with record set. | 22 | * @brief testcase for namestore_api.c: Multiple clients work with record set. |
23 | */ | 23 | */ |
24 | #include "platform.h" | ||
24 | #include "gnunet_error_codes.h" | 25 | #include "gnunet_error_codes.h" |
25 | #include "gnunet_namestore_service.h" | 26 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_scheduler_lib.h" | 27 | #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 @@ | |||
21 | * @file namestore/test_namestore_api_monitoring.c | 21 | * @file namestore/test_namestore_api_monitoring.c |
22 | * @brief testcase for zone monitoring functionality: monitor first, then add records | 22 | * @brief testcase for zone monitoring functionality: monitor first, then add records |
23 | */ | 23 | */ |
24 | #include "platform.h" | ||
24 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
25 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
26 | 27 | ||
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 @@ | |||
21 | * @file namestore/test_namestore_api_monitoring_existing.c | 21 | * @file namestore/test_namestore_api_monitoring_existing.c |
22 | * @brief testcase for zone monitoring functionality: add records first, then monitor | 22 | * @brief testcase for zone monitoring functionality: add records first, then monitor |
23 | */ | 23 | */ |
24 | #include "platform.h" | ||
24 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
25 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
26 | 27 | ||
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 @@ | |||
21 | * @file namestore/test_namestore_api_zone_to_name.c | 21 | * @file namestore/test_namestore_api_zone_to_name.c |
22 | * @brief testcase for zone to name translation | 22 | * @brief testcase for zone to name translation |
23 | */ | 23 | */ |
24 | #include "platform.h" | ||
24 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
25 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
26 | 27 | ||
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, | |||
603 | 603 | ||
604 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 604 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
605 | "Creating `www` record\n"); | 605 | "Creating `www` record\n"); |
606 | qe = GNUNET_NAMESTORE_records_store (namestore, | 606 | { |
607 | zone_key, | 607 | struct GNUNET_NAMESTORE_RecordInfo ri = { |
608 | "www", | 608 | .a_label = "www", |
609 | 1, &rd, | 609 | .a_rd_count = 1, |
610 | &commence_testing, | 610 | .a_rd = &rd |
611 | NULL); | 611 | }; |
612 | unsigned int did_sent; | ||
613 | |||
614 | qe = GNUNET_NAMESTORE_records_store (namestore, | ||
615 | zone_key, | ||
616 | 1, | ||
617 | &ri, | ||
618 | &did_sent, | ||
619 | &commence_testing, | ||
620 | NULL); | ||
621 | GNUNET_assert (1 == did_sent); | ||
622 | } | ||
612 | GNUNET_free_nz ((void **) rd.data); | 623 | GNUNET_free_nz ((void **) rd.data); |
613 | GNUNET_free (rd_string); | 624 | GNUNET_free (rd_string); |
614 | } | 625 | } |