|
@ -85,8 +85,8 @@ void json_stream_append_part(struct json_stream *js, const char *str, |
|
|
* @js: the json_stream. |
|
|
* @js: the json_stream. |
|
|
* @fmt...: the printf-style format |
|
|
* @fmt...: the printf-style format |
|
|
*/ |
|
|
*/ |
|
|
void PRINTF_FMT(2,3) |
|
|
PRINTF_FMT(2,3) |
|
|
json_stream_append_fmt(struct json_stream *js, const char *fmt, ...); |
|
|
void json_stream_append_fmt(struct json_stream *js, const char *fmt, ...); |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* json_add_member - add a generic member. |
|
|
* json_add_member - add a generic member. |
|
@ -94,8 +94,8 @@ json_stream_append_fmt(struct json_stream *js, const char *fmt, ...); |
|
|
* @fieldname: optional fieldname. |
|
|
* @fieldname: optional fieldname. |
|
|
* @fmt...: the printf-style format |
|
|
* @fmt...: the printf-style format |
|
|
*/ |
|
|
*/ |
|
|
void PRINTF_FMT(3,4) |
|
|
PRINTF_FMT(3,4) |
|
|
json_add_member(struct json_stream *js, const char *fieldname, |
|
|
void json_add_member(struct json_stream *js, const char *fieldname, |
|
|
const char *fmt, ...); |
|
|
const char *fmt, ...); |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|