summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-09 20:53:54 +0000
committermidipix <writeonce@midipix.org>2024-02-09 20:53:54 +0000
commit6b24134383e78124e81ac94b1c9e21383fcc1308 (patch)
tree3403840ca67cc7eb42a956f3f1c1682010670235
parentc3d88b9a38867353e774c7f0380686d46dc368f3 (diff)
downloadslibtool-6b24134383e78124e81ac94b1c9e21383fcc1308.tar.bz2
slibtool-6b24134383e78124e81ac94b1c9e21383fcc1308.tar.xz
driver: provide wrappers for argv_usage() and argv_usage_plain().
-rw-r--r--src/driver/slbt_driver_ctx.c20
-rw-r--r--src/internal/slibtool_driver_impl.h14
2 files changed, 34 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index a8aaffb..12748cd 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -131,6 +131,26 @@ void slbt_argv_free(struct argv_meta * meta)
}
+void slbt_argv_usage(
+ int fd,
+ const char * header,
+ const struct argv_option ** optv,
+ const char * mode)
+{
+ return argv_usage(fd,header,optv,mode);
+}
+
+
+void slbt_argv_usage_plain(
+ int fd,
+ const char * header,
+ const struct argv_option ** optv,
+ const char * mode)
+{
+ return argv_usage_plain(fd,header,optv,mode);
+}
+
+
uint64_t slbt_argv_flags(uint64_t flags)
{
uint32_t ret = 0;
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 825eb2a..c81fe67 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -196,6 +196,20 @@ struct argv_meta * slbt_argv_get(
void slbt_argv_free(struct argv_meta *);
+void slbt_argv_usage(
+ int fd,
+ const char * header,
+ const struct argv_option **,
+ const char * mode);
+
+
+void slbt_argv_usage_plain(
+ int fd,
+ const char * header,
+ const struct argv_option **,
+ const char * mode);
+
+
int slbt_driver_usage(
int fdout,
const char * program,