aboutsummaryrefslogtreecommitdiffstats
path: root/plpfuse/rfsv_api.h
blob: 37f27a5d4d58061c53ff9f69f532540d2df87b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*-*-c++-*-
 * $Id$
 *
 * This file is part of plptools.
 *
 *  Copyright (C) 1999-2001 Fritz Elfert <felfert@to.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
#ifndef _rfsv_api_h_
#define _rfsv_api_h_

#ifdef __cplusplus
extern "C" {
#endif

#include "plpfuse.h"

extern int psierr_to_errno(long psierr);
extern int rfsv_dir(const char *name, dentry **e);
extern int rfsv_mkdir(const char *name);
extern int rfsv_rmdir(const char *name);
extern int rfsv_remove(const char *name);
extern int rfsv_rename(const char *oldname, const char *newname);
extern int rfsv_open(const char *name, long mode, u_int32_t *handle);
extern int rfsv_fclose(long handle);
extern int rfsv_fcreate(long attr, const char *name, u_int32_t *handle);
extern int rfsv_read(char *buf, long offset, long len, const char *name);
extern int rfsv_write(const char *buf, long offset, long len, const char *name);
extern int rfsv_getattr(const char *name, long *attr, long *size, long *time);
extern int rfsv_setattr(const char *name, long sattr, long dattr);
extern int rfsv_setsize(const char *name, long size);
extern int rfsv_setmtime(const char *name, long time);
extern int rfsv_drivelist(int *cnt, device **devlist);
extern int rfsv_dircount(const char *name, long *count);
extern int rfsv_isalive(void);

/* File attributes, C-style */
#define	PSI_A_RDONLY		0x0001
#define	PSI_A_HIDDEN		0x0002
#define	PSI_A_SYSTEM		0x0004
#define PSI_A_DIR		0x0008
#define PSI_A_ARCHIVE		0x0010
#define PSI_A_VOLUME		0x0020
#define PSI_A_NORMAL		0x0040
#define PSI_A_TEMP		0x0080
#define PSI_A_COMPRESSED	0x0100
#define PSI_A_READ		0x0200
#define PSI_A_EXEC		0x0400
#define PSI_A_STREAM		0x0800
#define PSI_A_TEXT		0x1000

#ifdef __cplusplus
}
#endif

#endif

/*
 * Local variables:
 * c-basic-offset: 4
 * End:
 */