aboutsummaryrefslogtreecommitdiff
path: root/include/BH/IO.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/BH/IO.h')
-rw-r--r--include/BH/IO.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/BH/IO.h b/include/BH/IO.h
index 5aad2ed..d3c9161 100644
--- a/include/BH/IO.h
+++ b/include/BH/IO.h
@@ -86,16 +86,25 @@ BH_IO *BH_FileNew(const char *path,
int *result);
+int BH_IOIsFile(BH_IO *device);
+
+
BH_IO *BH_BufferNew(BH_IO *device,
size_t size,
int *result);
+int BH_IOIsBuffer(BH_IO *device);
+
+
BH_IO *BH_BytesNew(char *data,
size_t size,
int *result);
+int BH_IOIsBytes(BH_IO *device);
+
+
void BH_IOFree(BH_IO *device);
@@ -155,4 +164,14 @@ int BH_IOEndOfFile(BH_IO *device);
int BH_IOClear(BH_IO *device);
+char *BH_IOReadLine(BH_IO *device,
+ char *str,
+ size_t size);
+
+
+char *BH_IOReadLineFull(BH_IO *device,
+ char *str,
+ size_t size);
+
+
#endif /* BH_IO_H */