Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-seekable-substream.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-seekable-substream.h: stream that piggybacks on another stream */
3
4 /*
5  * Author:
6  *  Bertrand Guiheneuf <bertrand@helixcode.com>
7  *
8  * Copyright 1999, 2000 Ximian, Inc. (www.ximian.com)
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of version 2 of the GNU Lesser General Public
12  * License as published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
22  * USA
23  */
24
25
26 #ifndef CAMEL_SEEKABLE_SUBSTREAM_H
27 #define CAMEL_SEEKABLE_SUBSTREAM_H 1
28
29 #include <camel/camel-seekable-stream.h>
30
31 #define CAMEL_SEEKABLE_SUBSTREAM_TYPE       (camel_seekable_substream_get_type ())
32 #define CAMEL_SEEKABLE_SUBSTREAM(obj)       (CAMEL_CHECK_CAST((obj), CAMEL_SEEKABLE_SUBSTREAM_TYPE, CamelSeekableSubstream))
33 #define CAMEL_SEEKABLE_SUBSTREAM_CLASS(k)   (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SEEKABLE_SUBSTREAM_TYPE, CamelSeekableSubstreamClass))
34 #define CAMEL_IS_SEEKABLE_SUBSTREAM(o)      (CAMEL_CHECK_TYPE((o), CAMEL_SEEKABLE_SUBSTREAM_TYPE))
35
36 G_BEGIN_DECLS
37
38 struct _CamelSeekableSubstream {
39         CamelSeekableStream parent_object;
40
41         /*  --**-- Private fields --**--  */
42         CamelSeekableStream *parent_stream;
43 };
44
45 typedef struct {
46         CamelSeekableStreamClass parent_class;
47
48 } CamelSeekableSubstreamClass;
49
50 /* Standard Camel function */
51 CamelType camel_seekable_substream_get_type (void);
52
53 /* public methods */
54
55 /* obtain a new seekable substream */
56 CamelStream *camel_seekable_substream_new(CamelSeekableStream *parent_stream, off_t start, off_t end);
57
58 G_END_DECLS
59
60 #endif /* CAMEL_SEEKABLE_SUBSTREAM_H */