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
* Copyright (C) 2026 Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* along with this program; if not, see <https://www.gnu.org/licenses/>.
19
*
20
*/
21
#pragma once
22
23
#if FUSE_USE_VERSION >= 30
24
#include <fuse3/fuse.h>
25
#else
26
#include <fuse.h>
27
#endif
28
29
typedef
struct
p_inode
{
30
int
inode
;
31
char
*
name
;
32
struct
p_inode
*
nextnam
, *
nextnum
;
33
}
p_inode
;
34
38
typedef
struct
p_device
{
39
char
*
name
;
/* Volume-Name */
40
char
letter
;
/* Drive-Letter */
41
long
attrib
;
/* Device-Attribs */
42
long
total
;
/* Total capacity in bytes */
43
long
free
;
/* Free space in bytes */
44
struct
p_device
*
next
;
45
}
device
;
46
47
/*
48
* Description of a Psion-File/Dir
49
*/
50
typedef
struct
p_dentry
51
{
52
char
*
name
;
53
long
time
;
54
long
attr
;
55
long
size
;
56
long
links
;
57
struct
p_dentry
*
next
;
58
}
dentry
;
59
60
extern
int
debug
;
61
62
extern
void
debuglog
(
const
char
*fmt, ...);
63
64
#define BLOCKSIZE 512
65
#define FID 7
/* File system id */
66
67
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:51
dentry
struct p_dentry dentry
plp_oper
struct fuse_operations plp_oper
Definition
fuse.c:640
p_inode
struct p_inode p_inode
debug
int debug
Definition
fuse.c:48
p_dentry
Definition
plpfuse.h:51
p_dentry::time
long time
Definition
plpfuse.h:53
p_dentry::links
long links
Definition
plpfuse.h:56
p_dentry::size
long size
Definition
plpfuse.h:55
p_dentry::next
struct p_dentry * next
Definition
plpfuse.h:57
p_dentry::name
char * name
Definition
plpfuse.h:52
p_dentry::attr
long attr
Definition
plpfuse.h:54
p_device
Description of a Psion-Device.
Definition
plpfuse.h:38
p_device::name
char * name
Definition
plpfuse.h:39
p_device::attrib
long attrib
Definition
plpfuse.h:41
p_device::total
long total
Definition
plpfuse.h:42
p_device::letter
char letter
Definition
plpfuse.h:40
p_device::next
struct p_device * next
Definition
plpfuse.h:44
p_device::free
long free
Definition
plpfuse.h:43
p_inode
Definition
plpfuse.h:29
p_inode::inode
int inode
Definition
plpfuse.h:30
p_inode::nextnum
struct p_inode * nextnum
Definition
plpfuse.h:32
p_inode::name
char * name
Definition
plpfuse.h:31
p_inode::nextnam
struct p_inode * nextnam
Definition
plpfuse.h:32
plpfuse
plpfuse.h
Generated by
1.12.0