-fix ftbfs

This commit is contained in:
Christian Grothoff 2022-08-17 21:07:11 +02:00
parent b2a67fcff9
commit 9deca4a0c0
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -23,7 +23,7 @@
#ifndef _mustach_jansson_h_included_ #ifndef _mustach_jansson_h_included_
#define _mustach_jansson_h_included_ #define _mustach_jansson_h_included_
#include <taler/taler_json_lib.h> #include "taler_json_lib.h"
#include "mustach.h" #include "mustach.h"
/** /**
@ -62,7 +62,8 @@ extern int fdmustach_jansson(const char *template, json_t *root, int fd);
* Returns 0 in case of success, -1 with errno set in case of system error * Returns 0 in case of success, -1 with errno set in case of system error
* a other negative value in case of error. * a other negative value in case of error.
*/ */
extern int mustach_jansson(const char *template, json_t *root, char **result, size_t *size); extern int mustach_jansson (const char *template, json_t *root, char **result,
size_t *size);
/** /**
* umustach_jansson - Renders the mustache 'template' for 'root' to custom writer 'writecb' with 'closure'. * umustach_jansson - Renders the mustache 'template' for 'root' to custom writer 'writecb' with 'closure'.
@ -75,8 +76,9 @@ extern int mustach_jansson(const char *template, json_t *root, char **result, si
* Returns 0 in case of success, -1 with errno set in case of system error * Returns 0 in case of success, -1 with errno set in case of system error
* a other negative value in case of error. * a other negative value in case of error.
*/ */
typedef int (*mustach_jansson_write_cb)(void *closure, const char *buffer, size_t size); typedef int (*mustach_jansson_write_cb)(void *closure, const char *buffer,
extern int umustach_jansson(const char *template, json_t *root, mustach_jansson_write_cb writecb, void *closure); size_t size);
extern int umustach_jansson (const char *template, json_t *root,
mustach_jansson_write_cb writecb, void *closure);
#endif #endif