summaryrefslogtreecommitdiff
path: root/src/apk_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index 18b8ecc..309a508 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -60,7 +60,7 @@ struct apk_ostream;
struct apk_istream_ops {
void (*get_meta)(struct apk_istream *is, struct apk_file_meta *meta);
ssize_t (*read)(struct apk_istream *is, void *ptr, size_t size);
- void (*close)(struct apk_istream *is);
+ int (*close)(struct apk_istream *is);
};
#define APK_ISTREAM_SINGLE_READ 0x0001
@@ -106,9 +106,9 @@ static inline void apk_istream_get_meta(struct apk_istream *is, struct apk_file_
{
is->ops->get_meta(is, meta);
}
-static inline void apk_istream_close(struct apk_istream *is)
+static inline int apk_istream_close(struct apk_istream *is)
{
- is->ops->close(is);
+ return is->ops->close(is);
}
#define APK_MPART_DATA 1 /* data processed so far */