2020-06-28 17:43:08 +00:00
|
|
|
#ifndef WF_IMPL_MESSAGE_H
|
|
|
|
#define WF_IMPL_MESSAGE_H
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
#include "webfuse/impl/util/slist.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
struct wf_message
|
|
|
|
{
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_slist_item item;
|
2019-03-26 22:04:53 +00:00
|
|
|
char * data;
|
|
|
|
size_t length;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2020-07-13 20:41:19 +00:00
|
|
|
extern struct wf_message *
|
|
|
|
wf_impl_message_create(
|
|
|
|
char * value,
|
|
|
|
size_t length);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-07-13 20:41:19 +00:00
|
|
|
extern void
|
|
|
|
wf_impl_message_dispose(
|
2019-03-26 22:04:53 +00:00
|
|
|
struct wf_message * message);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|