Commit | Line | Data |
---|---|---|
1ee2c72e LC |
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 | |
53befeb7 NJ |
7 | * modify it under the terms of the GNU Lesser General Public License |
8 | * as published by the Free Software Foundation; either version 3 of | |
9 | * the License, or (at your option) any later version. | |
1ee2c72e | 10 | * |
53befeb7 NJ |
11 | * This library is distributed in the hope that it will be useful, but |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
1ee2c72e LC |
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 | |
53befeb7 NJ |
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
19 | * 02110-1301 USA | |
1ee2c72e LC |
20 | */ |
21 | ||
22 | \f | |
23 | ||
24 | #include "libguile/__scm.h" | |
25 | ||
26 | /* R6RS I/O Ports. */ | |
27 | ||
28 | SCM_API SCM scm_eof_object (void); | |
29 | SCM_API SCM scm_open_bytevector_input_port (SCM, SCM); | |
30 | SCM_API SCM scm_make_custom_binary_input_port (SCM, SCM, SCM, SCM, SCM); | |
31 | SCM_API SCM scm_get_u8 (SCM); | |
32 | SCM_API SCM scm_lookahead_u8 (SCM); | |
33 | SCM_API SCM scm_get_bytevector_n (SCM, SCM); | |
34 | SCM_API SCM scm_get_bytevector_n_x (SCM, SCM, SCM, SCM); | |
35 | SCM_API SCM scm_get_bytevector_some (SCM); | |
36 | SCM_API SCM scm_get_bytevector_all (SCM); | |
37 | SCM_API SCM scm_put_u8 (SCM, SCM); | |
38 | SCM_API SCM scm_put_bytevector (SCM, SCM, SCM, SCM); | |
39 | SCM_API SCM scm_open_bytevector_output_port (SCM); | |
40 | SCM_API SCM scm_make_custom_binary_output_port (SCM, SCM, SCM, SCM, SCM); | |
41 | ||
42 | SCM_API void scm_init_r6rs_ports (void); | |
43 | ||
44 | #endif /* SCM_R6RS_PORTS_H */ |