2019-01-27 02:45:03 +00:00
|
|
|
#ifndef _WSFS_RESPONSE_PARSER_H
|
|
|
|
#define _WFSF_RESPONSE_PARSER_H
|
|
|
|
|
2019-01-30 21:28:50 +00:00
|
|
|
#ifndef __cplusplus
|
2019-01-27 02:45:03 +00:00
|
|
|
#include <stddef.h>
|
2019-01-30 21:28:50 +00:00
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
2019-01-27 02:45:03 +00:00
|
|
|
#include <jansson.h>
|
|
|
|
#include "wsfs/status.h"
|
|
|
|
|
|
|
|
struct wsfs_response
|
|
|
|
{
|
|
|
|
wsfs_status status;
|
|
|
|
int id;
|
|
|
|
json_t * result;
|
|
|
|
};
|
|
|
|
|
2019-01-30 21:28:50 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-01-27 02:45:03 +00:00
|
|
|
extern void wsfs_response_parse(
|
|
|
|
char const * buffer,
|
|
|
|
size_t buffer_length,
|
|
|
|
struct wsfs_response * response);
|
|
|
|
|
2019-01-30 21:28:50 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-01-27 02:45:03 +00:00
|
|
|
#endif
|
|
|
|
|