summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-01 15:04:47 +0000
committermidipix <writeonce@midipix.org>2024-01-22 03:49:50 +0000
commit11f3c72e2281a8ef511e2c0819f7042f343f4474 (patch)
tree8b64ab467fd2c3fdd190c932458f3f5d047451b8 /include
parent62634282d8511970f0ccdcc41249e7a947134a42 (diff)
downloadslibtool-11f3c72e2281a8ef511e2c0819f7042f343f4474.tar.bz2
slibtool-11f3c72e2281a8ef511e2c0819f7042f343f4474.tar.xz
ar mode: initial driver integration and skeleton implementation.
Diffstat (limited to 'include')
-rw-r--r--include/slibtool/slibtool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 3c436a4..a742037 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -71,6 +71,8 @@ extern "C" {
#define SLBT_DRIVER_STATIC_LIBTOOL_LIBS SLBT_DRIVER_XFLAG(0x0100)
#define SLBT_DRIVER_OUTPUT_MACHINE SLBT_DRIVER_XFLAG(0x1000)
+#define SLBT_DRIVER_MODE_AR SLBT_DRIVER_XFLAG(0x010000)
+
/* error flags */
#define SLBT_ERROR_TOP_LEVEL 0x0001
#define SLBT_ERROR_NESTED 0x0002
@@ -93,6 +95,7 @@ enum slbt_custom_error {
SLBT_ERR_LCONF_OPEN,
SLBT_ERR_LCONF_MAP,
SLBT_ERR_LCONF_PARSE,
+ SLBT_ERR_AR_FAIL,
};
/* execution modes */
@@ -106,6 +109,7 @@ enum slbt_mode {
SLBT_MODE_INSTALL,
SLBT_MODE_LINK,
SLBT_MODE_UNINSTALL,
+ SLBT_MODE_AR,
};
enum slbt_tag {
@@ -304,6 +308,7 @@ slbt_api int slbt_exec_execute (const struct slbt_driver_ctx *, struct
slbt_api int slbt_exec_install (const struct slbt_driver_ctx *, struct slbt_exec_ctx *);
slbt_api int slbt_exec_link (const struct slbt_driver_ctx *, struct slbt_exec_ctx *);
slbt_api int slbt_exec_uninstall (const struct slbt_driver_ctx *, struct slbt_exec_ctx *);
+slbt_api int slbt_exec_ar (const struct slbt_driver_ctx *, struct slbt_exec_ctx *);
slbt_api int slbt_set_alternate_host (const struct slbt_driver_ctx *, const char * host, const char * flavor);
slbt_api void slbt_reset_alternate_host (const struct slbt_driver_ctx *);