diff options
author | midipix <writeonce@midipix.org> | 2024-02-09 20:44:01 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-09 20:44:01 +0000 |
commit | c3d88b9a38867353e774c7f0380686d46dc368f3 (patch) | |
tree | 3401be76c9a0bc7193eab6d0bdcf927d668bd23a /src/driver/slbt_driver_ctx.c | |
parent | 741c4dddf7138471f6929e6550b6557fce0f8bf2 (diff) | |
download | slibtool-c3d88b9a38867353e774c7f0380686d46dc368f3.tar.bz2 slibtool-c3d88b9a38867353e774c7f0380686d46dc368f3.tar.xz |
driver: eliminate duplicate presence of the static argv interfaces.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 57d8cef..a8aaffb 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -96,6 +96,41 @@ const char * slbt_program_name(const char * path) return argv_program_name(path); } + +int slbt_optv_init( + const struct argv_option options[], + const struct argv_option ** optv) +{ + return argv_optv_init(options,optv); +} + + +void slbt_argv_scan( + char ** argv, + const struct argv_option ** optv, + struct argv_ctx * ctx, + struct argv_meta * meta) +{ + return argv_scan(argv,optv,ctx,meta); +} + + +struct argv_meta * slbt_argv_get( + char ** argv, + const struct argv_option ** optv, + int flags, + int fd) +{ + return argv_get(argv,optv,flags,fd); +} + + +void slbt_argv_free(struct argv_meta * meta) +{ + return argv_free(meta); +} + + uint64_t slbt_argv_flags(uint64_t flags) { uint32_t ret = 0; |