1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/lib/webfuse_provider/impl/message.h
2020-07-09 22:12:13 +02:00

38 lines
540 B
C++

#ifndef WFP_MESSAGE_H
#define WFP_MESSAGE_H
#ifndef __cplusplus
#include <stddef.h>
#else
#include <cstddef>
using std::size_t;
#endif
#include <jansson.h>
#include "webfuse_provider/impl/util/slist.h"
struct wfp_message
{
struct wfp_slist_item item;
char * data;
char * raw_data;
size_t length;
};
#ifdef __cplusplus
extern "C"
{
#endif
extern struct wfp_message * wfp_message_create(
json_t const * value);
extern void wfp_message_dispose(
struct wfp_message * message);
#ifdef __cplusplus
}
#endif
#endif