aboutsummaryrefslogtreecommitdiffstats
path: root/fuse.h
blob: 32c2609336893fe97b2a925d5493c539f1a5fa6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
    FUSE: Filesystem in Userspace
    Copyright (C) 2001  Miklos Szeredi (mszeredi@inf.bme.hu)

    This program can be distributed under the terms of the GNU GPL.
    See the file COPYING.
*/


#define FUSE_MOUNT_VERSION 1

struct fuse_mount_data {
	int version;
	int fd;
};

enum fuse_opcode {
	FUSE_OPEN,
	FUSE_RELEASE,
};

struct fuse_inparam {
	enum fuse_opcode opcode;
	union {
		struct {
			unsigned int ino;
			int flags;
		} open;
	} u;
};

struct fuse_outparam {
	int result;
	union {
		struct {
			int fd;
		} open;
	} u;
};

struct fuse_param {
	int unique;
	int result;
	union {
		struct fuse_inparam i;
		struct fuse_outparam o;
	} u;
};


/* 
 * Local Variables:
 * indent-tabs-mode: t
 * c-basic-offset: 8
 * End:
 */