2 * Include vfs for captive 'vfs' private interface to reactos
3 * Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; exactly version 2 of June 1991 is required
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef _CAPTIVE_CLIENT_PRIV_VFS_H
21 #define _CAPTIVE_CLIENT_PRIV_VFS_H 1
24 #include <glib/gmacros.h>
25 #include <glib/gtypes.h>
26 #include <glib-object.h>
27 #include "../sandbox/sandbox.h"
28 #include <libxml/tree.h>
29 #include "captive/options.h"
30 #include "captive/client-vfs.h"
31 #include "captive/client-directory.h"
32 #include "captive/client-file.h"
37 struct _CaptiveVfsObject {
38 GObject parent_instance;
41 struct captive_options options;
43 struct _CaptiveVfsObjectClass {
44 GObjectClass parent_class;
46 GnomeVFSResult (*init)(CaptiveVfsObject *captive_vfs_object);
47 GnomeVFSResult (*commit)(CaptiveVfsObject *captive_vfs_object);
48 GnomeVFSResult (*volume_info_get)(CaptiveVfsObject *captive_vfs_object,CaptiveVfsVolumeInfo *volume_info);
50 GnomeVFSResult (*directory_new_open)(CaptiveDirectoryObject **captive_directory_object_return,
51 CaptiveVfsObject *captive_vfs_object,const gchar *pathname);
52 GnomeVFSResult (*directory_new_make)(CaptiveDirectoryObject **captive_directory_object_return,
53 CaptiveVfsObject *captive_vfs_object,const gchar *pathname,guint perm);
55 GnomeVFSResult (*file_new_open)(CaptiveFileObject **captive_file_object_return,
56 CaptiveVfsObject *captive_vfs_object,const gchar *pathname,GnomeVFSOpenMode mode);
57 GnomeVFSResult (*file_new_create)(CaptiveFileObject **captive_file_object_return,
58 CaptiveVfsObject *captive_vfs_object,const gchar *pathname,GnomeVFSOpenMode mode,gboolean exclusive,guint perm);
64 #endif /* _CAPTIVE_CLIENT_PRIV_VFS_H */