aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_i.h
blob: b3b907bf4186d9709aa44c221a255d4279a86239 (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
/*
    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.
*/

#include "fuse.h"
#include <glib.h>
#include <stdio.h>

#define FUSE_DEV "/proc/fs/fuse/dev"

typedef unsigned long fino_t;

struct node {
    char *name;
    fino_t parent;
};

struct fuse {
    char *dir;
    int fd;
    struct fuse_operations op;
    GHashTable *nametab;
};

struct fuse_dh {
    struct fuse *fuse;
    fino_t dir;
    FILE *fp;
};