2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WFP_OPERATION_READ_H
|
|
|
|
#define WFP_OPERATION_READ_H
|
2019-02-24 17:03:22 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cinttypes>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#include "webfuse/provider/api.h"
|
2019-02-24 17:03:22 +00:00
|
|
|
|
2019-03-26 14:35:33 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
struct wfp_request;
|
2019-02-24 17:03:22 +00:00
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
typedef void wfp_read_fn(
|
|
|
|
struct wfp_request * request,
|
2019-02-24 17:03:22 +00:00
|
|
|
ino_t inode,
|
|
|
|
uint32_t handle,
|
|
|
|
size_t offset,
|
|
|
|
size_t length,
|
|
|
|
void * user_data);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern WFP_API void wfp_respond_read(
|
|
|
|
struct wfp_request * request,
|
2019-02-24 17:03:22 +00:00
|
|
|
char const * data,
|
|
|
|
size_t length);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|