From cae14cb52e660648e13cb12dd49cea57ad00125d Mon Sep 17 00:00:00 2001 From: FactorialN Date: Tue, 28 Nov 2023 16:47:46 -0800 Subject: [PATCH] did some basic callback structure --- lib/fischl.cpp | 103 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 99 insertions(+), 4 deletions(-) diff --git a/lib/fischl.cpp b/lib/fischl.cpp index 2eef184..c396782 100644 --- a/lib/fischl.cpp +++ b/lib/fischl.cpp @@ -12,21 +12,91 @@ void* fischl_init(struct fuse_conn_info *conn) { } +void fischl_create(const char *, mode_t, struct fuse_file_info *) { + +} + + +void fischl_destroy(void* private_data) { + +} + static int fischl_getattr(const char* path, struct stat* stbuf) { return 0; } +static int fischl_fgetattr(const char* path, struct stat* stbuf) { + + return 0; +} + +static int fischl_access(const char* path, mask) { + +} + +static int fischl_readlink(const char* path, char* buf, size_t size) { + +} + +static int fischl_opendir(const char* path, struct fuse_file_info* fi) { + +} + static int fischl_readdir(const char* path, void* buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info* fi) { return 0; } +static int fischl_mknod(const char* path, mode_t mode, dev_t rdev) { + +} + static int fischl_mkdir(const char *, mode_t) { return 0; } +static int fischl_unlink(const char* path) { + +} + +static int fischl_rmdir(const char* path) { + +} + +static int fischl_symlink(const char* to, const char* from) { + +} + +static int fischl_rename(const char* from, const char* to) { + +} + +static int fischl_link(const char* from, const char* to) { + +} + +static int fischl_chmod(const char* path, mode_t mode) { + +} + +static int fischl_chown(const char* path, uid_t uid, gid_t gid) { + +} + +static int fischl_truncate(const char* path, off_t size) { + +} + +static int fischl_ftruncate(const char* path, off_t size) { + +} + +static int fischl_utimens(const char* path, const struct timespec ts[2]) { + +} + static int fischl_open(const char *path, struct fuse_file_info *fi) { return 0; @@ -37,6 +107,35 @@ static int fischl_read(const char* path, char *buf, size_t size, off_t offset, s return 0; } +static int fischl_write(const char* path, char *buf, size_t size, off_t offset, struct fuse_file_info* fi) { + +} + +static int fischl_statfs(const char* path, struct statvfs* stbuf) { + +} + +static int fischl_release(const char* path, struct fuse_file_info *fi) { + +} + +static int fischl_releasedir(const char* path, struct fuse_file_info *fi) { + +} + +static int fischl_bmap(const char* path, size_t blocksize, uint64_t* blockno) { + +} + +static int fischl_ioctl(const char* path, int cmd, void* arg, struct fuse_file_info* fi, unsigned int flags, void* data) { + +} + +static int fischl_poll(const char* path, struct fuse_file_info* fi, struct fuse_pollhandle* ph, unsigned* reventsp){ + +} + + static const struct fuse_operations fischl_oper = { .init = fischl_init, .destroy = fischl_destroy, @@ -65,10 +164,6 @@ static const struct fuse_operations fischl_oper = { .release = fischl_release, .opendir = fischl_opendir, .releasedir = fischl_releasedir, - .fsync = fischl_fsync, - .flush = fischl_flush, - .fsyncdir = fischl_fsyncdir, - .lock = fischl_lock, .bmap = fischl_bmap, .ioctl = fischl_ioctl, .poll = fischl_poll,