summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-06 09:19:04 +0000
committermidipix <writeonce@midipix.org>2024-01-22 03:49:50 +0000
commit7bab5a71cefe37b583b08fec0177fc569f041980 (patch)
tree2b9df70fa95b7481deff97d66fbc3b00a46681ff /include
parentd4473b3be02d429a72347914a6fc7e5688ad98e5 (diff)
downloadslibtool-7bab5a71cefe37b583b08fec0177fc569f041980.tar.bz2
slibtool-7bab5a71cefe37b583b08fec0177fc569f041980.tar.xz
ar mode: slbt_get_archive_ctx(): initial implementation and integration.
Diffstat (limited to 'include')
-rw-r--r--include/slibtool/slibtool.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 1743262..1eac876 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -74,6 +74,9 @@ extern "C" {
#define SLBT_DRIVER_MODE_AR SLBT_DRIVER_XFLAG(0x010000)
+/* unit action flags */
+#define SLBT_ACTION_MAP_READWRITE 0x0001
+
/* error flags */
#define SLBT_ERROR_TOP_LEVEL 0x0001
#define SLBT_ERROR_NESTED 0x0002
@@ -357,6 +360,11 @@ slbt_api int slbt_dump_machine (const char * compiler, char * machine,
slbt_api int slbt_realpath (int, const char *, int, char *, size_t);
/* archiver api */
+slbt_api int slbt_get_archive_ctx (const struct slbt_driver_ctx *, const char * path,
+ struct slbt_archive_ctx **);
+
+slbt_api void slbt_free_archive_ctx (struct slbt_archive_ctx *);
+
slbt_api int slbt_get_archive_meta (const struct slbt_driver_ctx *,
const struct slbt_raw_archive *,
struct slbt_archive_meta **);