2020-02-17 20:53:42 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// \file provider/operation/close.h
|
|
|
|
/// \brief Provider's close callback.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WFP_OPERATION_CLOSE_H
|
|
|
|
#define WFP_OPERATION_CLOSE_H
|
2019-02-24 17:03:22 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <inttypes.h>
|
|
|
|
#else
|
|
|
|
#include <cinttypes>
|
|
|
|
#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
|
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
/// \brief Callback invoked when a file is invoked.
|
|
|
|
///
|
|
|
|
/// This function does not respond.
|
|
|
|
///
|
|
|
|
/// \param inode inode of file to close
|
|
|
|
/// \param handle handle of file to close
|
|
|
|
/// \param flags file close flags
|
|
|
|
/// \param user_data user defined context
|
|
|
|
//------------------------------------------------------------------------------
|
2019-03-26 22:04:53 +00:00
|
|
|
typedef void wfp_close_fn(
|
2019-02-24 17:03:22 +00:00
|
|
|
ino_t inode,
|
|
|
|
uint32_t handle,
|
|
|
|
int flags,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|