2020-06-28 17:43:08 +00:00
|
|
|
#ifndef WF_IMPL_JSONRPC_RESPONSE_INTERN_H
|
|
|
|
#define WF_IMPL_JSONRPC_RESPONSE_INTERN_H
|
2020-03-29 15:40:33 +00:00
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
#include "webfuse/impl/jsonrpc/response.h"
|
2020-02-29 01:32:03 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-07-16 17:30:18 +00:00
|
|
|
struct wf_jsonrpc_error;
|
2020-07-16 20:36:12 +00:00
|
|
|
struct wf_json;
|
2020-07-16 17:30:18 +00:00
|
|
|
|
2020-03-01 15:55:58 +00:00
|
|
|
struct wf_jsonrpc_response
|
2020-02-29 01:32:03 +00:00
|
|
|
{
|
2020-07-16 20:36:12 +00:00
|
|
|
struct wf_json const * result;
|
2020-07-16 17:30:18 +00:00
|
|
|
struct wf_jsonrpc_error * error;
|
2020-02-29 01:32:03 +00:00
|
|
|
int id;
|
|
|
|
};
|
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
extern void wf_impl_jsonrpc_response_init(
|
2020-03-01 15:55:58 +00:00
|
|
|
struct wf_jsonrpc_response * response,
|
2020-07-16 20:36:12 +00:00
|
|
|
struct wf_json const * message);
|
2020-02-29 01:32:03 +00:00
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
extern void wf_impl_jsonrpc_response_cleanup(
|
2020-03-01 15:55:58 +00:00
|
|
|
struct wf_jsonrpc_response * response);
|
2020-02-29 01:32:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|