From 8ce83bdbe7769b8517c68c432f6db78ed96aa7a4 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 16 Jan 2014 18:28:37 +0900 Subject: [PATCH] declare some low-level file IO operation methods --- include/picrin/port.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/picrin/port.h b/include/picrin/port.h index fbd0c884..db925cf8 100644 --- a/include/picrin/port.h +++ b/include/picrin/port.h @@ -43,4 +43,10 @@ struct pic_port *pic_stderr(pic_state *); pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), fpos_t (*seek)(void *, fpos_t, int), int (*close)(void *)); +pic_file *pic_fopen(const char *, const char *); +int pic_fclose(pic_file *); + +size_t pic_fread(void *, size_t, size_t, pic_file *); +size_t pic_fwrite(const void *, size_t, size_t, pic_file *); + #endif