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#pragma once
21
22#include <fuse.h>
23
24typedef struct p_inode {
25 int inode;
26 char *name;
29
33typedef struct p_device {
34 char *name; /* Volume-Name */
35 char letter; /* Drive-Letter */
36 long attrib; /* Device-Attribs */
37 long total; /* Total capacity in bytes */
38 long free; /* Free space in bytes */
39 struct p_device *next;
41
42/*
43 * Description of a Psion-File/Dir
44 */
45typedef struct p_dentry
46{
47 char *name;
48 long time;
49 long attr;
50 long size;
51 long links;
52 struct p_dentry *next;
54
55extern int debug;
56
57extern void debuglog(const char *fmt, ...);
58
59#define BLOCKSIZE 512
60#define FID 7 /* File system id */
61
62extern 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:48
long links
Definition: plpfuse.h:51
long size
Definition: plpfuse.h:50
struct p_dentry * next
Definition: plpfuse.h:52
char * name
Definition: plpfuse.h:47
long attr
Definition: plpfuse.h:49
Description of a Psion-Device.
Definition: plpfuse.h:33
char * name
Definition: plpfuse.h:34
long attrib
Definition: plpfuse.h:36
long total
Definition: plpfuse.h:37
char letter
Definition: plpfuse.h:35
struct p_device * next
Definition: plpfuse.h:39
long free
Definition: plpfuse.h:38
int inode
Definition: plpfuse.h:25
struct p_inode * nextnum
Definition: plpfuse.h:27
char * name
Definition: plpfuse.h:26
struct p_inode * nextnam
Definition: plpfuse.h:27