started to write the fuse interface

This commit is contained in:
Fufu Fang 2018-07-21 02:51:49 +01:00
parent 8eef21ecec
commit 8926119400
3 changed files with 25 additions and 2 deletions

19
fuse_local.c Normal file
View File

@ -0,0 +1,19 @@
#include <fuse_lowlevel.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include "network.h"
#include "fuse_local.h"
static struct fuse_lowlevel_ops fs_ops = {
.lookup = fs_lookup,
.getattr = fs_getattr,
.readdir = fs_readdir,
.open = fs_open,
.read = fs_read,
};

4
fuse_local.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef FUSE_H
#define FUSE_H
#endif

View File

@ -1,5 +1,5 @@
#ifndef LINK_H
#define LINK_H
#ifndef NETWORK_H
#define NETWORK_H
#include <stdio.h>
#include <stdlib.h>