summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-26 14:18:17 +0000
committermidipix <writeonce@midipix.org>2024-05-26 14:18:17 +0000
commitc9eeca63ccc3960c0253368147e95fdd61b04fcd (patch)
tree566072febd91a8eed889e6da1314866c372e46d4 /src/logic
parent99ab678ae0659e60290154dabe987e6fb0029d3e (diff)
downloadtpax-c9eeca63ccc3960c0253368147e95fdd61b04fcd.tar.bz2
tpax-c9eeca63ccc3960c0253368147e95fdd61b04fcd.tar.xz
library api's: _lib_ (program driver) namespace overhaul.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/tpax_archive_append.c4
-rw-r--r--src/logic/tpax_archive_write.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/logic/tpax_archive_append.c b/src/logic/tpax_archive_append.c
index cfdcb74..d0f5cb4 100644
--- a/src/logic/tpax_archive_append.c
+++ b/src/logic/tpax_archive_append.c
@@ -142,7 +142,7 @@ static int tpax_archive_append_ret(
struct tpax_unit_ctx * unit)
{
if (unit)
- tpax_free_unit_ctx(unit);
+ tpax_lib_free_unit_ctx(unit);
return ret;
}
@@ -242,7 +242,7 @@ static int tpax_archive_append_dir_entries(
depth = dent->depth;
/* uctx on the fly */
- if (tpax_get_unit_ctx(
+ if (tpax_lib_get_unit_ctx(
dctx,fdat,
dent->dirent.d_name,
&uctx) < 0)
diff --git a/src/logic/tpax_archive_write.c b/src/logic/tpax_archive_write.c
index 272f9b9..707b288 100644
--- a/src/logic/tpax_archive_write.c
+++ b/src/logic/tpax_archive_write.c
@@ -67,7 +67,7 @@ static int tpax_archive_write_ret(
int ret,
struct tpax_unit_ctx * uctx)
{
- tpax_free_unit_ctx(uctx);
+ tpax_lib_free_unit_ctx(uctx);
return ret;
}
@@ -97,7 +97,7 @@ static int tpax_archive_write_impl(
TPAX_ERR_FLOW_ERROR);
/* uctx */
- if (tpax_get_unit_ctx(dctx,fdcwd,path,&uctx) < 0)
+ if (tpax_lib_get_unit_ctx(dctx,fdcwd,path,&uctx) < 0)
return TPAX_NESTED_ERROR(dctx);
/* record errors */
@@ -165,7 +165,7 @@ static int tpax_archive_write_impl(
/* all done? */
if (!(S_ISREG(uctx->st->st_mode))) {
- tpax_free_unit_ctx(uctx);
+ tpax_lib_free_unit_ctx(uctx);
return 0;
}