diff options
author | Timo Teräs <timo.teras@iki.fi> | 2023-04-10 20:17:25 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2023-04-11 20:55:13 +0300 |
commit | b3c4636ee213d8e37f21ecaae2748876b1063076 (patch) | |
tree | fb5fdbfad04cdc1e0935b66478c03169dfa7bae1 /src/apk_io.h | |
parent | 9176a977d9f0970e3251493fcd71f3c1be0834ae (diff) | |
download | apk-tools-b3c4636ee213d8e37f21ecaae2748876b1063076.tar.gz apk-tools-b3c4636ee213d8e37f21ecaae2748876b1063076.tar.bz2 apk-tools-b3c4636ee213d8e37f21ecaae2748876b1063076.tar.xz apk-tools-b3c4636ee213d8e37f21ecaae2748876b1063076.zip |
io: make apk_blob_from_* return error
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 09e537d..8f789e4 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -158,8 +158,8 @@ static inline int apk_ostream_close(struct apk_ostream *os) return os->ops->close(os); } -apk_blob_t apk_blob_from_istream(struct apk_istream *istream, size_t size); -apk_blob_t apk_blob_from_file(int atfd, const char *file); +int apk_blob_from_istream(struct apk_istream *is, size_t size, apk_blob_t *b); +int apk_blob_from_file(int atfd, const char *file, apk_blob_t *b); #define APK_BTF_ADD_EOL 0x00000001 int apk_blob_to_file(int atfd, const char *file, apk_blob_t b, unsigned int flags); |