aboutsummaryrefslogtreecommitdiff
path: root/src/xz/io.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-05 09:12:57 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-05 09:12:57 +0200
commit75905a9afc0ee89954ede7d08af70d1148bf0fd9 (patch)
treefc562f9890c63c4fa7087537941165393155af14 /src/xz/io.h
parentAnother utime() fix. (diff)
downloadxz-75905a9afc0ee89954ede7d08af70d1148bf0fd9.tar.xz
Various code cleanups the the xz command line tool.
It now builds with MinGW.
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