MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1#ifndef STREAMS_CODEC_H
2#define STREAMS_CODEC_H
3
4#include "types.h"
5#include <stdbool.h>
6
7extern ant_value_t g_tes_proto;
8extern ant_value_t g_tds_proto;
9
10void init_codec_stream_module(void);
11void gc_mark_codec_streams(ant_t *js, void (*mark)(ant_t *, ant_value_t));
12
13bool tes_is_stream(ant_value_t obj);
14bool tds_is_stream(ant_value_t obj);
15
16ant_value_t tes_stream_readable(ant_value_t obj);
17ant_value_t tes_stream_writable(ant_value_t obj);
18ant_value_t tds_stream_readable(ant_value_t obj);
19ant_value_t tds_stream_writable(ant_value_t obj);
20
21#endif