04b2dbf1d3767703172077909f634035a6675c44
[mesa.git] / src / egl / wayland / wayland-egl / wayland-egl-symbols-check
1 #!/bin/sh
2 set -eu
3
4 LIB=${1-.libs/libwayland-egl.so}
5
6 if ! [ -f "$LIB" ]
7 then
8 exit 1
9 fi
10
11 FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
12 ( grep -q "^$func$" || echo $func ) <<EOF
13 wl_egl_window_resize
14 wl_egl_window_create
15 wl_egl_window_destroy
16 wl_egl_window_get_attached_size
17 _fini
18 _init
19 EOF
20 done)
21
22 test ! -n "$FUNCS" || echo $FUNCS
23 test ! -n "$FUNCS"
24