2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_MESSAGE_H
|
|
|
|
#define WFP_MESSAGE_H
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <jansson.h>
|
2020-06-21 19:18:43 +00:00
|
|
|
#include "webfuse_provider/impl/util/slist.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_message
|
2019-03-26 22:04:53 +00:00
|
|
|
{
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_slist_item item;
|
2019-03-26 22:04:53 +00:00
|
|
|
char * data;
|
2020-07-09 20:12:13 +00:00
|
|
|
char * raw_data;
|
2019-03-26 22:04:53 +00:00
|
|
|
size_t length;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern struct wfp_message * wfp_message_create(
|
2019-04-17 20:51:16 +00:00
|
|
|
json_t const * value);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern void wfp_message_dispose(
|
|
|
|
struct wfp_message * message);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|