From 51c276fbf1686c340588660a754ea04e6099cd37 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Feb 2024 01:40:07 +0000 Subject: library api's: _ar_ (in-memory archiver) namespace overhaul. --- src/helper/slbt_archive_import.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/helper') diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c index 95c6c7d..d339f78 100644 --- a/src/helper/slbt_archive_import.c +++ b/src/helper/slbt_archive_import.c @@ -29,22 +29,22 @@ static int slbt_archive_import_impl( (void)ectx; - if (slbt_get_archive_ctx(dctx,dstarchive,&arctxv[0]) < 0) + if (slbt_ar_get_archive_ctx(dctx,dstarchive,&arctxv[0]) < 0) return SLBT_NESTED_ERROR(dctx); - if (slbt_get_archive_ctx(dctx,srcarchive,&arctxv[1]) < 0) { - slbt_free_archive_ctx(arctxv[0]); + if (slbt_ar_get_archive_ctx(dctx,srcarchive,&arctxv[1]) < 0) { + slbt_ar_free_archive_ctx(arctxv[0]); return SLBT_NESTED_ERROR(dctx); } - ret = slbt_merge_archives(arctxv,&arctx); + ret = slbt_ar_merge_archives(arctxv,&arctx); - slbt_free_archive_ctx(arctxv[0]); - slbt_free_archive_ctx(arctxv[1]); + slbt_ar_free_archive_ctx(arctxv[0]); + slbt_ar_free_archive_ctx(arctxv[1]); if (ret == 0) { - ret = slbt_store_archive(arctx,dstarchive,0644); - slbt_free_archive_ctx(arctx); + ret = slbt_ar_store_archive(arctx,dstarchive,0644); + slbt_ar_free_archive_ctx(arctx); } return (ret < 0) ? SLBT_NESTED_ERROR(dctx) : 0; -- cgit v1.2.3