Change Guile license to LGPLv3+
[bpt/guile.git] / libguile / r6rs-ports.h
CommitLineData
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
28SCM_API SCM scm_eof_object (void);
29SCM_API SCM scm_open_bytevector_input_port (SCM, SCM);
30SCM_API SCM scm_make_custom_binary_input_port (SCM, SCM, SCM, SCM, SCM);
31SCM_API SCM scm_get_u8 (SCM);
32SCM_API SCM scm_lookahead_u8 (SCM);
33SCM_API SCM scm_get_bytevector_n (SCM, SCM);
34SCM_API SCM scm_get_bytevector_n_x (SCM, SCM, SCM, SCM);
35SCM_API SCM scm_get_bytevector_some (SCM);
36SCM_API SCM scm_get_bytevector_all (SCM);
37SCM_API SCM scm_put_u8 (SCM, SCM);
38SCM_API SCM scm_put_bytevector (SCM, SCM, SCM, SCM);
39SCM_API SCM scm_open_bytevector_output_port (SCM);
40SCM_API SCM scm_make_custom_binary_output_port (SCM, SCM, SCM, SCM, SCM);
41
42SCM_API void scm_init_r6rs_ports (void);
43
44#endif /* SCM_R6RS_PORTS_H */