summaryrefslogtreecommitdiff
path: root/libguile/bytevectors.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-06-21 23:16:57 +0200
committerLudovic Courtès <ludo@gnu.org>2009-06-22 01:05:43 +0200
commit404bb5f87b66709206507acdf7b899101185a7a0 (patch)
treee893992fa46a837112c2f69550d4825afbcf12db /libguile/bytevectors.h
parent2d34e9244b8b35f62d086a88db749718a2a1a3b4 (diff)
downloadguile-404bb5f87b66709206507acdf7b899101185a7a0.tar.gz
bytevectors: Add a C-friendly API.
* doc/ref/api-data.texi (Bytevector Manipulation): Add `scm_is_bytevector ()', `scm_c_bytevector_length ()', `scm_c_bytevector_length ()', and `scm_c_bytevector_set_x ()'. * libguile/bytevectors.c (scm_is_bytevector, scm_c_bytevector_length, scm_c_bytevector_ref, scm_c_bytevector_set_x): New functions. (scm_bytevector_p): Use `scm_is_bytevector ()'. (scm_bytevector_length): Use `scm_c_bytevector_length ()'. * libguile/bytevectors.h (scm_is_bytevector, scm_c_bytevector_length, scm_c_bytevector_ref, scm_c_bytevector_set_x): New declarations.
Diffstat (limited to 'libguile/bytevectors.h')
-rw-r--r--libguile/bytevectors.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libguile/bytevectors.h b/libguile/bytevectors.h
index 208147627..df1ad2dfe 100644
--- a/libguile/bytevectors.h
+++ b/libguile/bytevectors.h
@@ -37,8 +37,13 @@
SCM_API SCM scm_endianness_big;
SCM_API SCM scm_endianness_little;
-SCM_API SCM scm_make_bytevector (SCM, SCM);
SCM_API SCM scm_c_make_bytevector (size_t);
+SCM_API int scm_is_bytevector (SCM);
+SCM_API size_t scm_c_bytevector_length (SCM);
+SCM_API scm_t_uint8 scm_c_bytevector_ref (SCM, size_t);
+SCM_API void scm_c_bytevector_set_x (SCM, size_t, scm_t_uint8);
+
+SCM_API SCM scm_make_bytevector (SCM, SCM);
SCM_API SCM scm_native_endianness (void);
SCM_API SCM scm_bytevector_p (SCM);
SCM_API SCM scm_bytevector_length (SCM);