diff options
Diffstat (limited to 'benchtests/json-lib.h')
-rw-r--r-- | benchtests/json-lib.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/benchtests/json-lib.h b/benchtests/json-lib.h index 524540ed26..e1c870c594 100644 --- a/benchtests/json-lib.h +++ b/benchtests/json-lib.h @@ -1,5 +1,5 @@ /* Simple library for printing JSON data. - Copyright (C) 2014-2016 Free Software Foundation, Inc. + Copyright (C) 2014-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,7 @@ #define __JSON_LIB_H__ #include <stdbool.h> +#include <inttypes.h> #include <stdio.h> struct json_ctx @@ -37,9 +38,14 @@ void json_document_end (json_ctx_t *ctx); void json_attr_object_begin (json_ctx_t *ctx, const char *name); void json_attr_object_end (json_ctx_t *ctx); void json_attr_string (json_ctx_t *ctx, const char *name, const char *s); +void json_attr_int (json_ctx_t *ctx, const char *name, int64_t d); +void json_attr_uint (json_ctx_t *ctx, const char *name, uint64_t d); void json_attr_double (json_ctx_t *ctx, const char *name, double d); void json_array_begin (json_ctx_t *ctx, const char *name); void json_array_end (json_ctx_t *ctx); +void json_element_string (json_ctx_t *ctx, const char *s); +void json_element_int (json_ctx_t *ctx, int64_t d); +void json_element_uint (json_ctx_t *ctx, uint64_t d); void json_element_double (json_ctx_t *ctx, double d); void json_element_object_begin (json_ctx_t *ctx); void json_element_object_end (json_ctx_t *ctx); |