summaryrefslogtreecommitdiffstats
path: root/ar.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
commit4b8a0f3f3dcf60dac2ce308ea08d413a535af29f (patch)
tree0f09c0ad2a4d0f535d89040a63dc3a866a6606e6 /ar.h
parentInitial commit. (diff)
downloadreprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.tar.xz
reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.zip
Adding upstream version 5.4.4.upstream/5.4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ar.h')
-rw-r--r--ar.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/ar.h b/ar.h
new file mode 100644
index 0000000..fe5ff7c
--- /dev/null
+++ b/ar.h
@@ -0,0 +1,22 @@
+#ifndef DEBCOMP_AR_H
+#define DEBCOMP_AR_H
+
+struct ar_archive;
+
+retvalue ar_open(/*@out@*/struct ar_archive **, const char *);
+void ar_close(/*@only@*/struct ar_archive *);
+
+/* RET_OK = next is there, RET_NOTHING = eof, < 0 = error */
+retvalue ar_nextmember(struct ar_archive *, /*@out@*/char ** /*filename*/);
+
+/* set compression for the next member */
+void ar_archivemember_setcompression(struct ar_archive *, enum compression);
+
+/* the following can be used for libarchive to read an file in the ar
+ * after ar_nextmember returned successfully.
+ * All references get invalid after the ar_nextmember is called again. */
+int ar_archivemember_close(struct archive *, void *);
+int ar_archivemember_open(struct archive *, void *);
+ssize_t ar_archivemember_read(struct archive *, void *, const void **);
+
+#endif