diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-06-02 22:35:58 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-06-02 22:35:58 +0300 |
commit | 1456296b43462cce0de55049b653c5225e7feac5 (patch) | |
tree | 3099b1f36b0199068e07620a24205c4830f8d567 /src/apk_io.h | |
parent | 209201bc5d400b68d71af0830efe9085c3648665 (diff) | |
download | apk-tools-1456296b43462cce0de55049b653c5225e7feac5.tar.gz apk-tools-1456296b43462cce0de55049b653c5225e7feac5.tar.bz2 apk-tools-1456296b43462cce0de55049b653c5225e7feac5.tar.xz apk-tools-1456296b43462cce0de55049b653c5225e7feac5.zip |
add adbgen applet to generate databases from it's text dump
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index eafb12f..8a243ac 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -81,6 +81,7 @@ struct apk_istream *apk_istream_from_file(int atfd, const char *file); struct apk_istream *apk_istream_from_file_gz(int atfd, const char *file); struct apk_istream *apk_istream_from_fd(int fd); struct apk_istream *apk_istream_from_fd_url_if_modified(int atfd, const char *url, time_t since); +static inline int apk_istream_error(struct apk_istream *is, int err) { if (!is->err) is->err = err; return err; } ssize_t apk_istream_read(struct apk_istream *is, void *ptr, size_t size); apk_blob_t apk_istream_get(struct apk_istream *is, size_t len); apk_blob_t apk_istream_get_max(struct apk_istream *is, size_t size); |