aboutsummaryrefslogtreecommitdiff
path: root/src/xz/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xz/io.h')
-rw-r--r--src/xz/io.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/xz/io.h b/src/xz/io.h
index 4d8e61b2..87cfdac2 100644
--- a/src/xz/io.h
+++ b/src/xz/io.h
@@ -17,12 +17,6 @@
//
///////////////////////////////////////////////////////////////////////////////
-#ifndef IO_H
-#define IO_H
-
-#include "private.h"
-
-
// Some systems have suboptimal BUFSIZ. Use a bit bigger value on them.
#if BUFSIZ <= 1024
# define IO_BUFFER_SIZE 8192
@@ -58,6 +52,10 @@ typedef struct {
} file_pair;
+/// \brief Initialize the I/O module
+extern void io_init(void);
+
+
/// \brief Opens a file pair
extern file_pair *io_open(const char *src_name);
@@ -93,5 +91,3 @@ extern size_t io_read(file_pair *pair, uint8_t *buf, size_t size);
/// \return On success, zero is returned. On error, -1 is returned
/// and error message printed.
extern bool io_write(const file_pair *pair, const uint8_t *buf, size_t size);
-
-#endif