1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-09-30 04:30:45 +00:00
falk-werner_webfuse-provider/include/wsfs/provider/operation/read.h
Falk Werner 1c9d1c8420
feat(API wrapper): separates implementation from public API
* moves implementation to impl subdirectory
* adds prefix _impl to implementation symbols
* removes double compilation for shared and static libraries
* fixes include guards
* fixes usage of extern "C"
2019-03-26 15:35:33 +01:00

45 lines
682 B
C++

#ifndef WSFSP_OPERATION_READ_H
#define WSFSP_OPERATION_READ_H
#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>
#include "wsfs/provider/api.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct wsfsp_request;
typedef void wsfsp_read_fn(
struct wsfsp_request * request,
ino_t inode,
uint32_t handle,
size_t offset,
size_t length,
void * user_data);
extern WSFSP_API void wsfsp_respond_read(
struct wsfsp_request * request,
char const * data,
size_t length);
#ifdef __cplusplus
}
#endif
#endif