1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* libnautilus: A library for nautilus view implementations.
*
* Copyright (C) 2000 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Author: Elliot Lee <sopwith@redhat.com>, based on bonobo-stream-fs.h by Miguel de Icaza.
* bonobo-stream-vfs.h: Gnome VFS-based Stream interface
*/
#ifndef _BONOBO_STREAM_VFS_H_
#define _BONOBO_STREAM_VFS_H_
#include <bonobo/bonobo-stream.h>
#include <libgnomevfs/gnome-vfs.h>
BEGIN_GNOME_DECLS
struct _BonoboStreamVFS;
typedef struct _BonoboStreamVFS BonoboStreamVFS;
#ifndef _BONOBO_STORAGE_VFS_H_
struct _BonoboStorageVFS;
typedef struct _BonoboStorageVFS BonoboStorageVFS;
#endif
#define BONOBO_STREAM_VFS_TYPE (bonobo_stream_vfs_get_type ())
#define BONOBO_STREAM_VFS(o) (GTK_CHECK_CAST ((o), BONOBO_STREAM_VFS_TYPE, BonoboStreamVFS))
#define BONOBO_STREAM_VFS_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_STREAM_VFS_TYPE, BonoboStreamVFSClass))
#define BONOBO_IS_STREAM_VFS(o) (GTK_CHECK_TYPE ((o), BONOBO_STREAM_VFS_TYPE))
#define BONOBO_IS_STREAM_VFS_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_STREAM_VFS_TYPE))
typedef struct _BonoboStreamVFSPrivate BonoboStreamVFSPrivate;
struct _BonoboStreamVFS {
BonoboStream stream;
GnomeVFSURI *uri;
GnomeVFSHandle *fd;
gboolean got_eof;
BonoboStreamVFSPrivate *priv;
};
typedef struct {
BonoboStreamClass parent_class;
} BonoboStreamVFSClass;
GtkType bonobo_stream_vfs_get_type (void);
BonoboStream *bonobo_stream_vfs_open (const char *uri, Bonobo_Storage_OpenMode mode);
BonoboStream *bonobo_stream_vfs_create (const char *uri);
BonoboStream *bonobo_stream_vfs_construct (BonoboStreamVFS *stream,
Bonobo_Stream corba_stream);
END_GNOME_DECLS
#endif /* _BONOBO_STREAM_VFS_H_ */
|