"Initial commit to Gerrit"
[profile/ivi/libgsf.git] / gsf-gnome / gsf-shared-bonobo-stream.h
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * gsf-shared-bonobo-stream.h: helper class for gsf-input-bonobo
4  *
5  * Copyright (C) 2002-2003 Jon K Hellan (hellan@acm.org)
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2.1 of the GNU Lesser General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
19  * USA
20  */
21
22 #ifndef GSF_SHARED_BONOBO_STREAM_H
23 #define GSF_SHARED_BONOBO_STREAM_H
24
25 #include <gsf/gsf.h>
26 #include <glib-object.h>
27 #include <bonobo/bonobo-stream.h>
28
29 G_BEGIN_DECLS
30
31 #define GSF_SHARED_BONOBO_STREAM_TYPE   (gsf_shared_bonobo_stream_get_type ())
32 #define GSF_SHARED_BONOBO_STREAM(o)     (G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_SHARED_BONOBO_STREAM_TYPE, GsfSharedBonoboStream))
33 #define GSF_IS_SHARED_BONOBO_STREAM(o)  (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSF_SHARED_BONOBO_STREAM_TYPE))
34
35 typedef struct _GsfSharedBonoboStream GsfSharedBonoboStream;
36 struct _GsfSharedBonoboStream {
37         GObject g_object;
38         Bonobo_Stream stream;
39         CORBA_long pos;
40 };
41
42 GType gsf_shared_bonobo_stream_get_type (void);
43 GsfSharedBonoboStream *gsf_shared_bonobo_stream_new (Bonobo_Stream stream);
44
45 G_END_DECLS
46
47 #endif /* GSF_SHARED_BONOBO_STREAM_H */