--- /dev/null
+/* $Id$
+ * Include file with client-application 'file' access to libcaptive
+ * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+ *
+ * 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; exactly version 2 of June 1991 is required
+ *
+ * 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 _CAPTIVE_CLIENT_FILE_H
+#define _CAPTIVE_CLIENT_FILE_H 1
+
+
+#include <glib/gmacros.h>
+#include <glib-object.h>
+#include "reactos/ntos/types.h" /* for HANDLE */
+#include "reactos/ddk/zwtypes.h" /* for FILE_ID_BOTH_DIR_INFORMATION */
+#include <libgnomevfs/gnome-vfs-handle.h> /* for GnomeVFSOpenMode */
+
+
+G_BEGIN_DECLS
+
+#define CAPTIVE_FILE_TYPE_OBJECT (captive_file_object_get_type())
+#define CAPTIVE_FILE_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST((object),CAPTIVE_FILE_TYPE_OBJECT,CaptiveFileObject))
+#define CAPTIVE_FILE_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),CAPTIVE_FILE_TYPE_OBJECT,CaptiveFileObjectClass))
+#define CAPTIVE_FILE_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE((object),CAPTIVE_FILE_TYPE_OBJECT))
+#define CAPTIVE_FILE_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),CAPTIVE_FILE_TYPE_OBJECT))
+#define CAPTIVE_FILE_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),CAPTIVE_FILE_TYPE_OBJECT,CaptiveFileObjectClass))
+typedef struct _CaptiveFileObject CaptiveFileObject;
+typedef struct _CaptiveFileObjectClass CaptiveFileObjectClass;
+struct _CaptiveFileObject {
+ GObject parent_instance;
+
+ /*< private >*/
+ HANDLE file_Handle;
+ GnomeVFSFileOffset offset;
+ };
+struct _CaptiveFileObjectClass {
+ GObjectClass parent_class;
+ };
+
+GType captive_file_object_get_type(void);
+
+GnomeVFSResult captive_file_new_open
+ (CaptiveFileObject **captive_file_object_return,const gchar *pathname,GnomeVFSOpenMode mode);
+GnomeVFSResult captive_file_read
+ (CaptiveFileObject *captive_file_object,gpointer buffer,GnomeVFSFileSize num_bytes,GnomeVFSFileSize *bytes_read_return);
+GnomeVFSResult captive_file_seek
+ (CaptiveFileObject *captive_file_object,GnomeVFSSeekPosition whence,GnomeVFSFileOffset offset);
+GnomeVFSResult captive_file_tell(CaptiveFileObject *captive_file_object,GnomeVFSFileOffset *offset_return);
+
+G_END_DECLS
+
+
+#endif /* _CAPTIVE_CLIENT_FILE_H */