diff options
author | midipix <writeonce@midipix.org> | 2024-02-20 04:50:19 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-20 05:12:52 +0000 |
commit | f7b3fdbb145ce292ae9c468c63b6d32c1a75ffde (patch) | |
tree | 08a432ce9595d701606cd72ca5275fb903ed5222 /src/internal | |
parent | 28398220532389d9f1c16bf78adc17ac49750e84 (diff) | |
download | slibtool-f7b3fdbb145ce292ae9c468c63b6d32c1a75ffde.tar.bz2 slibtool-f7b3fdbb145ce292ae9c468c63b6d32c1a75ffde.tar.xz |
utility api's: added slbt_util_create_mapfile().
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/slibtool_driver_impl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h index 8420532..5bc421d 100644 --- a/src/internal/slibtool_driver_impl.h +++ b/src/internal/slibtool_driver_impl.h @@ -320,6 +320,18 @@ static inline struct slbt_driver_ctx_impl * slbt_get_driver_ictx(const struct sl return 0; } +static inline struct slbt_symlist_ctx_impl * slbt_get_symlist_ictx(const struct slbt_symlist_ctx * sctx) +{ + uintptr_t addr; + + if (sctx) { + addr = (uintptr_t)sctx - offsetof(struct slbt_symlist_ctx_impl,sctx); + return (struct slbt_symlist_ctx_impl *)addr; + } + + return 0; +} + static inline void slbt_driver_set_arctx( const struct slbt_driver_ctx * dctx, const struct slbt_archive_ctx * arctx, |