aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 15:49:38 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 15:49:38 +0200
commitcd1c45b00ae4ba98ad3b365c2db67d82bdc0843d (patch)
tree17346ca2852fd38b63484dc817720080002b6195 /src/namestore
parent17e43503b9e8c88e24e66d1f6a8ffcf543361c27 (diff)
downloadgnunet-cd1c45b00ae4ba98ad3b365c2db67d82bdc0843d.tar.gz
gnunet-cd1c45b00ae4ba98ad3b365c2db67d82bdc0843d.zip
- more dep fixes
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/Makefile.am1
-rw-r--r--src/namestore/plugin_rest_namestore.c16
2 files changed, 9 insertions, 8 deletions
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am
index 40ac64197..d057a0a99 100644
--- a/src/namestore/Makefile.am
+++ b/src/namestore/Makefile.am
@@ -131,6 +131,7 @@ libgnunet_plugin_rest_namestore_la_LIBADD = \
131 $(top_builddir)/src/identity/libgnunetidentity.la \ 131 $(top_builddir)/src/identity/libgnunetidentity.la \
132 $(top_builddir)/src/json/libgnunetjson.la \ 132 $(top_builddir)/src/json/libgnunetjson.la \
133 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 133 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
134 $(top_builddir)/src/gnsrecord/libgnunetgnsrecordjson.la \
134 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ 135 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
135 $(LTLIBINTL) -ljansson $(MHD_LIBS) 136 $(LTLIBINTL) -ljansson $(MHD_LIBS)
136libgnunet_plugin_rest_namestore_la_LDFLAGS = \ 137libgnunet_plugin_rest_namestore_la_LDFLAGS = \
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c
index f295951bc..edcbeb874 100644
--- a/src/namestore/plugin_rest_namestore.c
+++ b/src/namestore/plugin_rest_namestore.c
@@ -30,7 +30,7 @@
30#include "gnunet_namestore_service.h" 30#include "gnunet_namestore_service.h"
31#include "gnunet_identity_service.h" 31#include "gnunet_identity_service.h"
32#include "gnunet_rest_lib.h" 32#include "gnunet_rest_lib.h"
33#include "gnunet_json_lib.h" 33#include "gnunet_gnsrecord_json_lib.h"
34#include "microhttpd.h" 34#include "microhttpd.h"
35#include <jansson.h> 35#include <jansson.h>
36 36
@@ -535,9 +535,9 @@ namestore_list_iteration (void *cls,
535 /** Only add if not empty **/ 535 /** Only add if not empty **/
536 if (j > 0) 536 if (j > 0)
537 { 537 {
538 record_obj = GNUNET_JSON_from_gnsrecord (rname, 538 record_obj = GNUNET_GNSRECORD_JSON_from_gnsrecord (rname,
539 rd_filtered, 539 rd_filtered,
540 j); 540 j);
541 json_array_append_new (handle->resp_object, record_obj); 541 json_array_append_new (handle->resp_object, record_obj);
542 } 542 }
543 GNUNET_NAMESTORE_zone_iterator_next (handle->list_it, 1); 543 GNUNET_NAMESTORE_zone_iterator_next (handle->list_it, 1);
@@ -587,9 +587,9 @@ ns_get_lookup_cb (void *cls,
587 /** Only add if not empty **/ 587 /** Only add if not empty **/
588 if (j > 0) 588 if (j > 0)
589 { 589 {
590 record_obj = GNUNET_JSON_from_gnsrecord (label, 590 record_obj = GNUNET_GNSRECORD_JSON_from_gnsrecord (label,
591 rd_filtered, 591 rd_filtered,
592 j); 592 j);
593 json_array_append_new (handle->resp_object, record_obj); 593 json_array_append_new (handle->resp_object, record_obj);
594 } 594 }
595 GNUNET_SCHEDULER_add_now (&namestore_list_finished, handle); 595 GNUNET_SCHEDULER_add_now (&namestore_list_finished, handle);
@@ -755,7 +755,7 @@ namestore_add_or_update (struct GNUNET_REST_RequestHandle *con_handle,
755 handle->rest_handle->data_size); 755 handle->rest_handle->data_size);
756 data_js = json_loads (term_data, JSON_DECODE_ANY, &err); 756 data_js = json_loads (term_data, JSON_DECODE_ANY, &err);
757 struct GNUNET_JSON_Specification gnsspec[] = 757 struct GNUNET_JSON_Specification gnsspec[] =
758 { GNUNET_JSON_spec_gnsrecord (&handle->rd, &handle->rd_count, 758 { GNUNET_GNSRECORD_JSON_spec_gnsrecord (&handle->rd, &handle->rd_count,
759 &handle->record_name), 759 &handle->record_name),
760 GNUNET_JSON_spec_end () }; 760 GNUNET_JSON_spec_end () };
761 if (GNUNET_OK != GNUNET_JSON_parse (data_js, gnsspec, NULL, NULL)) 761 if (GNUNET_OK != GNUNET_JSON_parse (data_js, gnsspec, NULL, NULL))