2 * Include file for captive vfs 'file' private interface to reactos of sandbox parent
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_FILE_PARENT_H
21 #define _CAPTIVE_CLIENT_PRIV_FILE_PARENT_H 1
24 #include <glib/gmacros.h>
25 #include <glib/gtypes.h>
26 #include "captive/client-file.h" /* for CaptiveFileObject */
27 #include "file.h" /* for CaptiveFileObject priv */
28 #include "../sandbox/sandbox.h"
33 #define CAPTIVE_FILE_PARENT_TYPE_OBJECT (captive_file_parent_object_get_type())
34 #define CAPTIVE_FILE_PARENT_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST((object),CAPTIVE_FILE_PARENT_TYPE_OBJECT,CaptiveFileParentObject))
35 #define CAPTIVE_FILE_PARENT_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),CAPTIVE_FILE_PARENT_TYPE_OBJECT,CaptiveFileParentObjectClass))
36 #define CAPTIVE_FILE_PARENT_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE((object),CAPTIVE_FILE_PARENT_TYPE_OBJECT))
37 #define CAPTIVE_FILE_PARENT_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),CAPTIVE_FILE_PARENT_TYPE_OBJECT))
38 #define CAPTIVE_FILE_PARENT_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),CAPTIVE_FILE_PARENT_TYPE_OBJECT,CaptiveFileParentObjectClass))
39 typedef struct _CaptiveFileParentObject CaptiveFileParentObject;
40 typedef struct _CaptiveFileParentObjectClass CaptiveFileParentObjectClass;
43 GType captive_file_parent_object_get_type(void);
45 struct _CaptiveFileParentObject {
46 CaptiveFileObject parent_instance;
49 Captive_File corba_File_object;
50 GnomeVFSFileOffset offset;
52 GnomeVFSOpenMode mode;
54 struct _CaptiveFileParentObjectClass {
55 CaptiveFileObjectClass parent_class;
58 GnomeVFSResult captive_file_parent_new_open(CaptiveFileObject **captive_file_object_return,
59 CaptiveVfsObject *captive_vfs_object,const gchar *pathname,GnomeVFSOpenMode mode);
60 GnomeVFSResult captive_file_parent_new_create(CaptiveFileObject **captive_file_object_return,
61 CaptiveVfsObject *captive_vfs_object,const gchar *pathname,GnomeVFSOpenMode mode,gboolean exclusive,guint perm);
66 #endif /* _CAPTIVE_CLIENT_PRIV_FILE_PARENT_H */