1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 #ifndef BONOBO_STREAM_VFS_H
4 #define BONOBO_STREAM_VFS_H
6 #include <bonobo/bonobo-object.h>
7 #include <libgnomevfs/gnome-vfs-file-info.h>
8 #include <libgnomevfs/gnome-vfs-handle.h>
12 typedef struct _BonoboStreamVfs BonoboStreamVfs;
15 #define BONOBO_STREAM_VFS_TYPE (bonobo_stream_vfs_get_type ())
16 #define BONOBO_STREAM_VFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BONOBO_STREAM_VFS_TYPE, BonoboStreamVfs))
17 #define BONOBO_STREAM_VFS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), BONOBO_STREAM_VFS_TYPE, BonoboStreamVfsClass))
18 #define BONOBO_IS_STREAM_VFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BONOBO_STREAM_VFS_TYPE))
19 #define BONOBO_IS_STREAM_VFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), BONOBO_STREAM_VFS_TYPE))
21 typedef struct _BonoboStreamVfsPrivate BonoboStreamVfsPrivate;
23 struct _BonoboStreamVfs {
25 GnomeVFSHandle *handle;
27 BonoboStreamVfsPrivate *priv;
31 BonoboObjectClass parent_class;
33 POA_Bonobo_Stream__epv epv;
34 } BonoboStreamVfsClass;
36 GType bonobo_stream_vfs_get_type (void);
37 BonoboStreamVfs *bonobo_stream_vfs_open (const char *path,
38 Bonobo_Storage_OpenMode flags,
39 CORBA_Environment *ev);
40 void bonobo_stream_vfs_storageinfo_from_file_info (Bonobo_StorageInfo *si,
41 GnomeVFSFileInfo *fi);
45 #endif /* BONOBO_STREAM_VFS_H */