From 560bf8a7e0f78575d459223027f707f55584be65 Mon Sep 17 00:00:00 2001 From: fedir Date: Sun, 17 Nov 2024 20:23:57 +0100 Subject: [PATCH] Added main and .gitignore --- .gitignore | 1 + sources/main.cpp | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .gitignore create mode 100644 sources/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8e882d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +./build/* diff --git a/sources/main.cpp b/sources/main.cpp new file mode 100644 index 0000000..8bab059 --- /dev/null +++ b/sources/main.cpp @@ -0,0 +1,23 @@ + +#define FUSE_USE_VERSION 31 + +#include + +static void *hello_init(struct fuse_conn_info *conn, struct fuse_config *cfg) { + (void)conn; + cfg->kernel_cache = 1; + return NULL; +} + +static const struct fuse_operations hello_oper = { + .init = hello_init, +}; + +int main(int argc, char *argv[]) { + + int ret; + + ret = fuse_main(argc, argv, &hello_oper, NULL); + + return ret; +}