From 1456296b43462cce0de55049b653c5225e7feac5 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 2 Jun 2021 22:35:58 +0300 Subject: add adbgen applet to generate databases from it's text dump --- src/apk_io.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/apk_io.h') 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); -- cgit v1.2.3-70-g09d2