]> git.sesse.net Git - vlc/commitdiff
symbol list consistency checker
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 12 Dec 2007 17:31:57 +0000 (17:31 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 12 Dec 2007 17:31:57 +0000 (17:31 +0000)
src/check_symbols [new file with mode: 0755]

diff --git a/src/check_symbols b/src/check_symbols
new file mode 100755 (executable)
index 0000000..86265eb
--- /dev/null
@@ -0,0 +1,11 @@
+#! /bin/sh
+# Plugin API consistency check for VLC
+# Copyright © 2007 Rémi Denis-Courmont.
+
+rm -f libvlc-headers.sym
+
+cat ${srcdir}/../include/vlc_*.h | \
+sed -n -e 's/^VLC_EXPORT\s*([^,]*,\s*\([a-zA-Z0-9_]*\)\s*,.*$/\1/p' | \
+sort -du > libvlc-headers.sym
+
+exec diff -u ${srcdir}/libvlc.sym libvlc-headers.sym