Import R6RS bytevectors and I/O ports from Guile-R6RS-Libs 0.2.
[bpt/guile.git] / libguile / r6rs-ports.h
1 #ifndef SCM_R6RS_PORTS_H
2 #define SCM_R6RS_PORTS_H
3
4 /* Copyright (C) 2009 Free Software Foundation, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 \f
22
23 #include "libguile/__scm.h"
24
25 /* R6RS I/O Ports. */
26
27 SCM_API SCM scm_eof_object (void);
28 SCM_API SCM scm_open_bytevector_input_port (SCM, SCM);
29 SCM_API SCM scm_make_custom_binary_input_port (SCM, SCM, SCM, SCM, SCM);
30 SCM_API SCM scm_get_u8 (SCM);
31 SCM_API SCM scm_lookahead_u8 (SCM);
32 SCM_API SCM scm_get_bytevector_n (SCM, SCM);
33 SCM_API SCM scm_get_bytevector_n_x (SCM, SCM, SCM, SCM);
34 SCM_API SCM scm_get_bytevector_some (SCM);
35 SCM_API SCM scm_get_bytevector_all (SCM);
36 SCM_API SCM scm_put_u8 (SCM, SCM);
37 SCM_API SCM scm_put_bytevector (SCM, SCM, SCM, SCM);
38 SCM_API SCM scm_open_bytevector_output_port (SCM);
39 SCM_API SCM scm_make_custom_binary_output_port (SCM, SCM, SCM, SCM, SCM);
40
41 SCM_API void scm_init_r6rs_ports (void);
42
43 #endif /* SCM_R6RS_PORTS_H */