From 3fa3e3256e30f62d24889b572e3ae65ffb63876a Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Feb 2024 01:19:51 +0000 Subject: library api's: _au_ (archiver utility) namespace overhaul. --- src/arbits/output/slbt_ar_output_arname.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/arbits/output/slbt_ar_output_arname.c') diff --git a/src/arbits/output/slbt_ar_output_arname.c b/src/arbits/output/slbt_ar_output_arname.c index 38917e7..131e749 100644 --- a/src/arbits/output/slbt_ar_output_arname.c +++ b/src/arbits/output/slbt_ar_output_arname.c @@ -15,7 +15,7 @@ | SLBT_PRETTY_POSIX \ | SLBT_PRETTY_HEXDATA) -static int slbt_ar_output_arname_impl( +static int slbt_au_output_arname_impl( const struct slbt_driver_ctx * dctx, const struct slbt_archive_ctx * actx, const struct slbt_fd_ctx * fdctx, @@ -32,12 +32,12 @@ static int slbt_ar_output_arname_impl( return 0; } -static int slbt_ar_output_arname_posix( +static int slbt_au_output_arname_posix( const struct slbt_driver_ctx * dctx, const struct slbt_archive_ctx * actx, const struct slbt_fd_ctx * fdctx) { - if (slbt_ar_output_arname_impl( + if (slbt_au_output_arname_impl( dctx,actx,fdctx, "%s:\n") < 0) return SLBT_NESTED_ERROR(dctx); @@ -45,12 +45,12 @@ static int slbt_ar_output_arname_posix( return 0; } -static int slbt_ar_output_arname_yaml( +static int slbt_au_output_arname_yaml( const struct slbt_driver_ctx * dctx, const struct slbt_archive_ctx * actx, const struct slbt_fd_ctx * fdctx) { - if (slbt_ar_output_arname_impl( + if (slbt_au_output_arname_impl( dctx,actx,fdctx, "Archive:\n" " - Meta:\n" @@ -60,7 +60,7 @@ static int slbt_ar_output_arname_yaml( return 0; } -int slbt_ar_output_arname(const struct slbt_archive_ctx * actx) +int slbt_au_output_arname(const struct slbt_archive_ctx * actx) { const struct slbt_driver_ctx * dctx; struct slbt_fd_ctx fdctx; @@ -72,15 +72,15 @@ int slbt_ar_output_arname(const struct slbt_archive_ctx * actx) switch (dctx->cctx->fmtflags & SLBT_PRETTY_FLAGS) { case SLBT_PRETTY_YAML: - return slbt_ar_output_arname_yaml( + return slbt_au_output_arname_yaml( dctx,actx,&fdctx); case SLBT_PRETTY_POSIX: - return slbt_ar_output_arname_posix( + return slbt_au_output_arname_posix( dctx,actx,&fdctx); default: - return slbt_ar_output_arname_yaml( + return slbt_au_output_arname_yaml( dctx,actx,&fdctx); } } -- cgit v1.2.3