7ef9316c3bf8aab56d085e898425299dd576a335
[nit.git] / c_src / stream._nitni.h
1 #include <nit_common.h>
2 #include "standard___stream._sep.h"
3 #ifndef STREAM_NITNI_H
4 #define STREAM_NITNI_H
5
6 #ifndef FDSTREAM_TYPE
7 #define FDSTREAM_TYPE
8 struct s_FDStream{
9 struct nitni_ref ref; /* real ref struct, must be first */
10 };
11 typedef struct s_FDStream *FDStream;
12 #define FDStream_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
13 #define FDStream_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
14 #endif
15 #include "stream_nit.h"
16
17 /* out/indirect function for stream::FDStream::native_close */
18 val_t FDStream_native_close___out( val_t recv, val_t i );
19
20 /* out/indirect function for stream::FDStream::native_read_char */
21 val_t FDStream_native_read_char___out( val_t recv, val_t i );
22
23 /* out/indirect function for stream::FDStream::native_read */
24 val_t FDStream_native_read___out( val_t recv, val_t i, val_t buf, val_t len );
25
26 /* out/indirect function for stream::FDStream::native_write */
27 val_t FDStream_native_write___out( val_t recv, val_t i, val_t buf, val_t len );
28 #endif