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
25
typedef
struct
p_inode
{
26
int
inode
;
27
char
*
name
;
28
struct
p_inode
*
nextnam
, *
nextnum
;
29
}
p_inode
;
30
34
typedef
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
;
41
}
device
;
42
43
/*
44
* Description of a Psion-File/Dir
45
*/
46
typedef
struct
p_dentry
47
{
48
char
*
name
;
49
long
time
;
50
long
attr
;
51
long
size
;
52
long
links
;
53
struct
p_dentry
*
next
;
54
}
dentry
;
55
56
extern
int
debug
;
57
58
extern
void
debuglog
(
const
char
*fmt, ...);
59
60
#define BLOCKSIZE 512
61
#define FID 7
/* File system id */
62
63
#endif
64
65
extern
struct
fuse_operations
plp_oper
;
device
struct p_device device
Description of a Psion-Device.
debuglog
void debuglog(const char *fmt,...)
Definition:
fuse.c:50
dentry
struct p_dentry dentry
plp_oper
struct fuse_operations plp_oper
Definition:
fuse.c:581
debug
int debug
Definition:
fuse.c:47
p_dentry
Definition:
plpfuse.h:47
p_dentry::time
long time
Definition:
plpfuse.h:49
p_dentry::links
long links
Definition:
plpfuse.h:52
p_dentry::size
long size
Definition:
plpfuse.h:51
p_dentry::next
struct p_dentry * next
Definition:
plpfuse.h:53
p_dentry::name
char * name
Definition:
plpfuse.h:48
p_dentry::attr
long attr
Definition:
plpfuse.h:50
p_device
Description of a Psion-Device.
Definition:
plpfuse.h:34
p_device::name
char * name
Definition:
plpfuse.h:35
p_device::attrib
long attrib
Definition:
plpfuse.h:37
p_device::total
long total
Definition:
plpfuse.h:38
p_device::letter
char letter
Definition:
plpfuse.h:36
p_device::next
struct p_device * next
Definition:
plpfuse.h:40
p_device::free
long free
Definition:
plpfuse.h:39
p_inode
Definition:
plpfuse.h:25
p_inode::inode
int inode
Definition:
plpfuse.h:26
p_inode::nextnum
struct p_inode * nextnum
Definition:
plpfuse.h:28
p_inode::name
char * name
Definition:
plpfuse.h:27
p_inode::nextnam
struct p_inode * nextnam
Definition:
plpfuse.h:28
plpfuse
plpfuse.h
Generated by
1.9.5