summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-19 02:41:15 +0000
committermidipix <writeonce@midipix.org>2024-02-19 02:59:31 +0000
commitf0270acfad9d499f6a701d1df1cb08f09412eb93 (patch)
tree724943605aaf3328ea1b306e31687b518997dc12
parentea41378c1731e3d3b0faff05346d1aac467823b0 (diff)
downloadslibtool-f0270acfad9d499f6a701d1df1cb08f09412eb93.tar.bz2
slibtool-f0270acfad9d499f6a701d1df1cb08f09412eb93.tar.xz
library api's: _api_ (package information) namespace overhaul.
-rw-r--r--include/slibtool/slibtool.h2
-rw-r--r--src/driver/slbt_amain.c2
-rw-r--r--src/driver/slbt_driver_ctx.c2
-rw-r--r--src/internal/slibtool_libmeta_impl.c4
-rw-r--r--src/internal/slibtool_objmeta_impl.c4
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_executable.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index f31ae72..f26e4aa 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -427,7 +427,7 @@ slbt_api int slbt_au_output_symbols (const struct slbt_archive_meta *);
slbt_api int slbt_au_output_mapfile (const struct slbt_archive_meta *);
/* package info */
-slbt_api const struct slbt_source_version * slbt_source_version(void);
+slbt_api const struct slbt_source_version * slbt_api_source_version(void);
#ifdef __cplusplus
}
diff --git a/src/driver/slbt_amain.c b/src/driver/slbt_amain.c
index 2ff5338..86d5dd5 100644
--- a/src/driver/slbt_amain.c
+++ b/src/driver/slbt_amain.c
@@ -41,7 +41,7 @@ static ssize_t slbt_version(struct slbt_driver_ctx * dctx, int fdout)
const char * const * verclr;
bool gitver;
- verinfo = slbt_source_version();
+ verinfo = slbt_api_source_version();
verclr = isatty(fdout) ? slbt_ver_color : slbt_ver_plain;
gitver = strcmp(verinfo->commit,"unknown");
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 83f6b1e..308b4fd 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1035,7 +1035,7 @@ void slbt_lib_free_driver_ctx(struct slbt_driver_ctx * ctx)
}
-const struct slbt_source_version * slbt_source_version(void)
+const struct slbt_source_version * slbt_api_source_version(void)
{
return &slbt_src_version;
}
diff --git a/src/internal/slibtool_libmeta_impl.c b/src/internal/slibtool_libmeta_impl.c
index db2753b..961a69a 100644
--- a/src/internal/slibtool_libmeta_impl.c
+++ b/src/internal/slibtool_libmeta_impl.c
@@ -55,7 +55,7 @@ static int slbt_create_default_library_wrapper(
fnover = !!(dctx->cctx->drvflags & SLBT_DRIVER_AVOID_VERSION);
fvernum = !!(dctx->cctx->verinfo.vernumber);
- verinfo = slbt_source_version();
+ verinfo = slbt_api_source_version();
/* wrapper header */
header = "libtool compatible library wrapper\n";
@@ -174,7 +174,7 @@ static int slbt_create_compatible_library_wrapper(
fnover = !!(dctx->cctx->drvflags & SLBT_DRIVER_AVOID_VERSION);
fvernum = !!(dctx->cctx->verinfo.vernumber);
- verinfo = slbt_source_version();
+ verinfo = slbt_api_source_version();
/* wrapper content */
ret = slbt_dprintf(fdout,
diff --git a/src/internal/slibtool_objmeta_impl.c b/src/internal/slibtool_objmeta_impl.c
index 1694e1d..dff5297 100644
--- a/src/internal/slibtool_objmeta_impl.c
+++ b/src/internal/slibtool_objmeta_impl.c
@@ -28,7 +28,7 @@ static int slbt_create_default_object_wrapper(
0644)) < 0)
return SLBT_SYSTEM_ERROR(dctx,ectx->ltobjname);
- verinfo = slbt_source_version();
+ verinfo = slbt_api_source_version();
ret = slbt_dprintf(fdout,
"# libtool compatible object wrapper\n"
@@ -69,7 +69,7 @@ static int slbt_create_compatible_object_wrapper(
0644)) < 0)
return SLBT_SYSTEM_ERROR(dctx, ectx->ltobjname);
- verinfo = slbt_source_version();
+ verinfo = slbt_api_source_version();
ret = slbt_dprintf(fdout,
"# %s - a libtool object file\n"
diff --git a/src/logic/linkcmd/slbt_linkcmd_executable.c b/src/logic/linkcmd/slbt_linkcmd_executable.c
index 56070f3..f8833a2 100644
--- a/src/logic/linkcmd/slbt_linkcmd_executable.c
+++ b/src/logic/linkcmd/slbt_linkcmd_executable.c
@@ -133,7 +133,7 @@ slbt_hidden int slbt_exec_link_create_executable(
slbt_exec_set_fdwrapper(ectx,fdwrap);
/* executable wrapper: header */
- verinfo = slbt_source_version();
+ verinfo = slbt_api_source_version();
/* cwd, DL_PATH fixup */
if (slbt_util_realpath(fdcwd,".",O_DIRECTORY,cwd,sizeof(cwd)))