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-fs.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /**
3  * bonobo-stream-fs.c: Sample file-system based Stream implementation
4  *
5  * This is just a sample file-system based Stream implementation.
6  * it is only used for debugging purposes
7  *
8  * Author:
9  *   Miguel de Icaza (miguel@gnu.org)
10  */
11 #ifndef _BONOBO_STREAM_FS_H_
12 #define _BONOBO_STREAM_FS_H_
13
14 #include <bonobo/bonobo-object.h>
15
16 G_BEGIN_DECLS
17
18 #define BONOBO_STREAM_FS_TYPE        (bonobo_stream_fs_get_type ())
19 #define BONOBO_STREAM_FS(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), BONOBO_STREAM_FS_TYPE, BonoboStreamFS))
20 #define BONOBO_STREAM_FS_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), BONOBO_STREAM_FS_TYPE, BonoboStreamFSClass))
21 #define BONOBO_IS_STREAM_FS(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), BONOBO_STREAM_FS_TYPE))
22 #define BONOBO_IS_STREAM_FS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), BONOBO_STREAM_FS_TYPE))
23
24 typedef struct _BonoboStreamFS BonoboStreamFS;
25 typedef struct _BonoboStreamFSPrivate BonoboStreamFSPrivate;
26
27 struct _BonoboStreamFS {
28         BonoboObject stream;
29         int fd;
30         char *path;
31
32         BonoboStreamFSPrivate *priv;
33 };
34
35 typedef struct {
36         BonoboObjectClass parent_class;
37
38         POA_Bonobo_Stream__epv epv;
39 } BonoboStreamFSClass;
40
41 GType           bonobo_stream_fs_get_type (void);
42 BonoboStreamFS *bonobo_stream_fs_open     (const char *path, 
43                                            gint flags, gint mode, 
44                                            CORBA_Environment *ev);      
45
46 G_END_DECLS
47
48 #endif /* _BONOBO_STREAM_FS_H_ */