ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / monikers / bonobo-stream-vfs.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 #ifndef BONOBO_STREAM_VFS_H
4 #define BONOBO_STREAM_VFS_H
5
6 #include <bonobo/bonobo-object.h>
7 #include <libgnomevfs/gnome-vfs-file-info.h>
8 #include <libgnomevfs/gnome-vfs-handle.h>
9
10 G_BEGIN_DECLS
11
12 typedef struct _BonoboStreamVfs BonoboStreamVfs;
13
14
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))
20
21 typedef struct _BonoboStreamVfsPrivate BonoboStreamVfsPrivate;
22
23 struct _BonoboStreamVfs {
24         BonoboObject            parent;
25         GnomeVFSHandle         *handle;
26
27         BonoboStreamVfsPrivate *priv;
28 };
29
30 typedef struct {
31         BonoboObjectClass       parent_class;
32
33         POA_Bonobo_Stream__epv  epv;
34 } BonoboStreamVfsClass;
35
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);
42         
43 G_END_DECLS
44
45 #endif /* BONOBO_STREAM_VFS_H */