| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
#include "byzanzqueue.h" |
| 19 |
|
| 20 |
#ifndef __HAVE_BYZANZ_QUEUE_OUTPUT_STREAM_H__ |
| 21 |
#define __HAVE_BYZANZ_QUEUE_OUTPUT_STREAM_H__ |
| 22 |
|
| 23 |
typedef struct _ByzanzQueueOutputStream ByzanzQueueOutputStream; |
| 24 |
typedef struct _ByzanzQueueOutputStreamClass ByzanzQueueOutputStreamClass; |
| 25 |
|
| 26 |
#define BYZANZ_TYPE_QUEUE_OUTPUT_STREAM (byzanz_queue_output_stream_get_type()) |
| 27 |
#define BYZANZ_IS_QUEUE_OUTPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BYZANZ_TYPE_QUEUE_OUTPUT_STREAM)) |
| 28 |
#define BYZANZ_IS_QUEUE_OUTPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BYZANZ_TYPE_QUEUE_OUTPUT_STREAM)) |
| 29 |
#define BYZANZ_QUEUE_OUTPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BYZANZ_TYPE_QUEUE_OUTPUT_STREAM, ByzanzQueueOutputStream)) |
| 30 |
#define BYZANZ_QUEUE_OUTPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BYZANZ_TYPE_QUEUE_OUTPUT_STREAM, ByzanzQueueOutputStreamClass)) |
| 31 |
#define BYZANZ_QUEUE_OUTPUT_STREAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BYZANZ_TYPE_QUEUE_OUTPUT_STREAM, ByzanzQueueOutputStreamClass)) |
| 32 |
|
| 33 |
struct _ByzanzQueueOutputStream { |
| 34 |
GOutputStream output_stream; |
| 35 |
|
| 36 |
ByzanzQueue * queue; |
| 37 |
GOutputStream * output; |
| 38 |
goffset output_bytes; |
| 39 |
}; |
| 40 |
|
| 41 |
struct _ByzanzQueueOutputStreamClass { |
| 42 |
GOutputStreamClass output_stream_class; |
| 43 |
}; |
| 44 |
|
| 45 |
GType byzanz_queue_output_stream_get_type (void) G_GNUC_CONST; |
| 46 |
|
| 47 |
GOutputStream * byzanz_queue_output_stream_new (ByzanzQueue * queue); |
| 48 |
|
| 49 |
|
| 50 |
#endif |