From 90095d19b4da40e79dce43a31af398a8925bcc4a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 26 Jul 2021 16:32:34 +0200 Subject: implement typed JSON packer --- src/include/gnunet_json_lib.h | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'src/include/gnunet_json_lib.h') diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h index 27a4a20cd..144ddb64a 100644 --- a/src/include/gnunet_json_lib.h +++ b/src/include/gnunet_json_lib.h @@ -553,26 +553,9 @@ struct GNUNET_JSON_PackSpec const char *field_name; /** - * Function that will do the packing. + * Object to pack. */ - GNUNET_JSON_PackCallback *packer; - - /** - * Closure for @e packer. - */ - void *packer_cls; - - /** - * Pointer to be provided to the packer. - */ - const void *value_ptr; - - /** - * Numeric value for the packer, could be - * the length of the data in @e value_ptr, - * or something different depending on the type. - */ - uint64_t value_num; + json_t *object; /** * True if a NULL (or 0) argument is allowed. In this -- cgit v1.2.3