Logo Search packages:      
Sourcecode: fuse version File versions  Download package

fuse_lowlevel.h File Reference


Detailed Description

Low level API

IMPORTANT: you should define FUSE_USE_VERSION before including this header. To use the newest API define it to 26 (recommended for any new application), to use the old API define it to 24 (default) or 25

Definition in file fuse_lowlevel.h.

#include "fuse_common.h"
#include <utime.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <sys/uio.h>
#include "fuse_lowlevel_compat.h"

Go to the source code of this file.

Classes

struct  fuse_chan_ops
struct  fuse_ctx
struct  fuse_entry_param
struct  fuse_lowlevel_ops
struct  fuse_session_ops

Defines

#define fuse_chan_new   fuse_chan_new_compat24
#define fuse_chan_ops   fuse_chan_ops_compat24
#define fuse_file_info   fuse_file_info_compat
#define fuse_lowlevel_new   fuse_lowlevel_new_compat
#define fuse_lowlevel_ops   fuse_lowlevel_ops_compat
#define fuse_reply_open   fuse_reply_open_compat
#define fuse_reply_statfs   fuse_reply_statfs_compat
#define FUSE_ROOT_ID   1
#define FUSE_SET_ATTR_ATIME   (1 << 4)
#define FUSE_SET_ATTR_GID   (1 << 2)
#define FUSE_SET_ATTR_MODE   (1 << 0)
#define FUSE_SET_ATTR_MTIME   (1 << 5)
#define FUSE_SET_ATTR_SIZE   (1 << 3)
#define FUSE_SET_ATTR_UID   (1 << 1)
#define FUSE_USE_VERSION   24

Typedefs

typedef unsigned long fuse_ino_t
typedef void(* fuse_interrupt_func_t )(fuse_req_t req, void *data)
typedef struct fuse_reqfuse_req_t

Functions

size_t fuse_add_direntry (fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off)
size_t fuse_chan_bufsize (struct fuse_chan *ch)
void * fuse_chan_data (struct fuse_chan *ch)
void fuse_chan_destroy (struct fuse_chan *ch)
int fuse_chan_fd (struct fuse_chan *ch)
struct fuse_chan * fuse_chan_new (struct fuse_chan_ops *op, int fd, size_t bufsize, void *data)
int fuse_chan_recv (struct fuse_chan **ch, char *buf, size_t size)
int fuse_chan_send (struct fuse_chan *ch, const struct iovec iov[], size_t count)
struct fuse_session * fuse_chan_session (struct fuse_chan *ch)
int fuse_lowlevel_is_lib_option (const char *opt)
struct fuse_session * fuse_lowlevel_new (struct fuse_args *args, const struct fuse_lowlevel_ops *op, size_t op_size, void *userdata)
int fuse_reply_attr (fuse_req_t req, const struct stat *attr, double attr_timeout)
int fuse_reply_bmap (fuse_req_t req, uint64_t idx)
int fuse_reply_buf (fuse_req_t req, const char *buf, size_t size)
int fuse_reply_create (fuse_req_t req, const struct fuse_entry_param *e, const struct fuse_file_info *fi)
int fuse_reply_entry (fuse_req_t req, const struct fuse_entry_param *e)
int fuse_reply_err (fuse_req_t req, int err)
int fuse_reply_iov (fuse_req_t req, const struct iovec *iov, int count)
int fuse_reply_lock (fuse_req_t req, struct flock *lock)
void fuse_reply_none (fuse_req_t req)
int fuse_reply_open (fuse_req_t req, const struct fuse_file_info *fi)
int fuse_reply_readlink (fuse_req_t req, const char *link)
int fuse_reply_statfs (fuse_req_t req, const struct statvfs *stbuf)
int fuse_reply_write (fuse_req_t req, size_t count)
int fuse_reply_xattr (fuse_req_t req, size_t count)
struct fuse_ctxfuse_req_ctx (fuse_req_t req)
void fuse_req_interrupt_func (fuse_req_t req, fuse_interrupt_func_t func, void *data)
int fuse_req_interrupted (fuse_req_t req)
void * fuse_req_userdata (fuse_req_t req)
void fuse_session_add_chan (struct fuse_session *se, struct fuse_chan *ch)
void fuse_session_destroy (struct fuse_session *se)
void fuse_session_exit (struct fuse_session *se)
int fuse_session_exited (struct fuse_session *se)
int fuse_session_loop (struct fuse_session *se)
int fuse_session_loop_mt (struct fuse_session *se)
struct fuse_session * fuse_session_new (struct fuse_session_ops *op, void *data)
struct fuse_chan * fuse_session_next_chan (struct fuse_session *se, struct fuse_chan *ch)
void fuse_session_process (struct fuse_session *se, const char *buf, size_t len, struct fuse_chan *ch)
void fuse_session_remove_chan (struct fuse_chan *ch)
void fuse_session_reset (struct fuse_session *se)


Generated by  Doxygen 1.6.0   Back to index