[vlc-commits] [Git][videolan/vlc][master] check_symbols: look for VLC_API symbols missing from libvlccore.sym
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Oct 27 03:46:24 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
2384e64a by Martin Finkel at 2026-10-26T22:48:07+01:00
check_symbols: look for VLC_API symbols missing from libvlccore.sym
The autotools build only exports what libvlccore.sym lists, while the
meson build exports anything with default visibility, so a VLC_API
function missing from the list goes unnoticed until a module calling
it fails to link with autotools.
Extract the names declared with VLC_API in the public headers and fail
if any of them is not listed.
- - - - -
1 changed file:
- src/check_symbols
Changes:
=====================================
src/check_symbols
=====================================
@@ -26,3 +26,16 @@ cat libvlccore.sym | grep -v \
&& exit 1
echo "None found."
+
+echo "Looking for VLC_API symbols missing from libvlccore.sym..."
+# Drop preprocessor lines, then put each VLC_API declaration on one line
+sed -n -e '/^[[:space:]]*#/d' -e '/VLC_API/!d' \
+ -e ':a' -e '/[([;]/!{' -e 'N' -e 'ba' -e '}' -e 's/\n/ /g' -e 's/^/ /p' \
+ ../include/*.h |
+# Keep what follows VLC_API, up to the parameter list or array size
+sed -n 's/.*[^A-Za-z0-9_]VLC_API[^A-Za-z0-9_]\([^([;]*\).*/\1/p' |
+# The symbol is the last identifier left
+sed 's/[[:space:]]*$//; s/.*[^A-Za-z0-9_]//' |
+sort -u | grep -vxF -f libvlccore.sym && exit 1
+
+echo "None found."
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2384e64adf6a253098a37a5105834d53cd458624
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2384e64adf6a253098a37a5105834d53cd458624
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list