plptools
Loading...
Searching...
No Matches
plpfuse.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 2007-2024 Reuben Thomas <rrt@sc3d.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * along with this program; if not, see <https://www.gnu.org/licenses/>.
18 *
19 */
20#ifndef _plpfuse_h_
21#define _plpfuse_h_
22
23#include <fuse.h>
24
25typedef struct p_inode {
26 int inode;
27 char *name;
30
34typedef struct p_device {
35 char *name; /* Volume-Name */
36 char letter; /* Drive-Letter */
37 long attrib; /* Device-Attribs */
38 long total; /* Total capacity in bytes */
39 long free; /* Free space in bytes */
40 struct p_device *next;
42
43/*
44 * Description of a Psion-File/Dir
45 */
46typedef struct p_dentry
47{
48 char *name;
49 long time;
50 long attr;
51 long size;
52 long links;
53 struct p_dentry *next;
55
56extern int debug;
57
58extern void debuglog(const char *fmt, ...);
59
60#define BLOCKSIZE 512
61#define FID 7 /* File system id */
62
63#endif
64
65extern struct fuse_operations plp_oper;
struct p_device device
Description of a Psion-Device.
void debuglog(const char *fmt,...)
Definition: fuse.c:50
struct p_dentry dentry
struct fuse_operations plp_oper
Definition: fuse.c:581
int debug
Definition: fuse.c:47
long time
Definition: plpfuse.h:49
long links
Definition: plpfuse.h:52
long size
Definition: plpfuse.h:51
struct p_dentry * next
Definition: plpfuse.h:53
char * name
Definition: plpfuse.h:48
long attr
Definition: plpfuse.h:50
Description of a Psion-Device.
Definition: plpfuse.h:34
char * name
Definition: plpfuse.h:35
long attrib
Definition: plpfuse.h:37
long total
Definition: plpfuse.h:38
char letter
Definition: plpfuse.h:36
struct p_device * next
Definition: plpfuse.h:40
long free
Definition: plpfuse.h:39
int inode
Definition: plpfuse.h:26
struct p_inode * nextnum
Definition: plpfuse.h:28
char * name
Definition: plpfuse.h:27
struct p_inode * nextnam
Definition: plpfuse.h:28