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

39 lines
530 B
C
Raw Normal View History

#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
2020-06-21 19:18:43 +00:00
#include "webfuse_provider/impl/util/slist.h"
2019-03-26 22:04:53 +00:00
struct wfp_message
2019-03-26 22:04:53 +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
extern struct wfp_message *
wfp_message_create(
char * data,
size_t length);
2019-03-26 22:04:53 +00:00
extern void wfp_message_dispose(
struct wfp_message * message);
2019-03-26 22:04:53 +00:00
#ifdef __cplusplus
}
#endif
#endif