Debian Codegraph @

src/byzanzqueueinputstream.h

raw symbols SCIP
1 /* desktop session recorder
2 * Copyright (C) 2009 Benjamin Otte <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "byzanzqueue.h"
19
20 #ifndef __HAVE_BYZANZ_QUEUE_INPUT_STREAM_H__
21 #define __HAVE_BYZANZ_QUEUE_INPUT_STREAM_H__
22
23 typedef struct _ByzanzQueueInputStream ByzanzQueueInputStream;
24 typedef struct _ByzanzQueueInputStreamClass ByzanzQueueInputStreamClass;
25
26 #define BYZANZ_TYPE_QUEUE_INPUT_STREAM (byzanz_queue_input_stream_get_type())
27 #define BYZANZ_IS_QUEUE_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BYZANZ_TYPE_QUEUE_INPUT_STREAM))
28 #define BYZANZ_IS_QUEUE_INPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BYZANZ_TYPE_QUEUE_INPUT_STREAM))
29 #define BYZANZ_QUEUE_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BYZANZ_TYPE_QUEUE_INPUT_STREAM, ByzanzQueueInputStream))
30 #define BYZANZ_QUEUE_INPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BYZANZ_TYPE_QUEUE_INPUT_STREAM, ByzanzQueueInputStreamClass))
31 #define BYZANZ_QUEUE_INPUT_STREAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BYZANZ_TYPE_QUEUE_INPUT_STREAM, ByzanzQueueInputStreamClass))
32
33 struct _ByzanzQueueInputStream {
34 GInputStream input_stream;
35
36 ByzanzQueue * queue; /* queue we belong to */
37 GInputStream * input; /* stream we're reading from or NULL if we need to open one */
38 goffset input_bytes; /* bytes we've already read from input */
39 };
40
41 struct _ByzanzQueueInputStreamClass {
42 GInputStreamClass input_stream_class;
43 };
44
45 GType byzanz_queue_input_stream_get_type (void) G_GNUC_CONST;
46
47 GInputStream * byzanz_queue_input_stream_new (ByzanzQueue * queue);
48
49
50 #endif /* __HAVE_BYZANZ_QUEUE_INPUT_STREAM_H__ */