2019-02-24 17:03:22 +00:00
|
|
|
#ifndef WSFSP_OPERATION_OPEN_H
|
|
|
|
#define WSFSP_OPERATION_OPEN_H
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <inttypes.h>
|
|
|
|
#else
|
|
|
|
#include <cinttypes>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2019-02-25 19:17:13 +00:00
|
|
|
#include "wsfs/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-02-24 17:03:22 +00:00
|
|
|
struct wsfsp_request;
|
|
|
|
|
|
|
|
typedef void wsfsp_open_fn(
|
|
|
|
struct wsfsp_request * request,
|
|
|
|
ino_t inode,
|
|
|
|
int flags,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern WSFSP_API void wsfsp_respond_open(
|
|
|
|
struct wsfsp_request * request,
|
|
|
|
uint32_t handle);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|