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