/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
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
#pragma once

#ifdef __H_STREAM__


#include "Thread.h"

struct SStreamPrivate {
  sbyte * data;
  size_t len;
  
    
  size_t buffered; /* < The number of buffered items. */
  
  SMutex * mutex;
};

/*
 * Initialise a stream with the default method.
 */
void
s_stream_internal_initialize (SStreamClass * klass);

/*
 * Default write method.
 *
 * Implemented in Stream.c
 */
void
s_stream_internal_write (SStream * self,
                         size_t len,
                         sbyte * data);

/*
 * Default read method.
 *
 * Implemented in Stream.c
 */
sbyte *
s_stream_internal_read (SStream * self,
                        size_t len);

#else /* #ifdef __H_STREAM__ */
#pragma message ("Trying to include file StreamPrivate.h without includeing Stream.h");
#endif /* #ifdef __H_STREAM__ */