]> git.sesse.net Git - vlc/blob - src/check_symbols
qt4: Missing vlc_gc_decref().
[vlc] / src / check_symbols
1 #! /bin/sh
2 # Plugin API consistency check for VLC
3 # Copyright © 2007 Rémi Denis-Courmont.
4
5 rm -f libvlc-headers.sym
6
7 cat ${srcdir}/../include/vlc_*.h | \
8 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
9 sed -e 's/[^a-zA-Z0-9_]*//' | \
10 sort -fdu > libvlc-headers.sym
11
12 if ! diff -u ${srcdir}/libvlc.sym libvlc-headers.sym; then
13         echo "Mismatching symbols found!"
14         exit 1
15 fi
16
17 # TODO: we should pass this:
18 #if grep -e "^_" libvlc-headers.sym; then
19 #       echo "Illegal symbol name (starting with underscore) found!";
20 #       exit 1
21 #fi
22
23 rm -f libvlc-headers.sym