1 #!/bin/sh 2 set -eu 3 4 LIB=${1-.libs/libgbm.so} 5 6 if ! [ -f "$LIB" ] 7 then 8 exit 1 9 fi 10 11 12 FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do 13 ( grep -q "^$func$" || echo $func ) <<EOF 14 gbm_device_get_fd 15 gbm_device_get_backend_name 16 gbm_device_is_format_supported 17 gbm_device_destroy 18 gbm_device_get_format_modifier_plane_count 19 gbm_create_device 20 gbm_bo_create 21 gbm_bo_create_with_modifiers 22 gbm_bo_import 23 gbm_bo_map 24 gbm_bo_unmap 25 gbm_bo_get_width 26 gbm_bo_get_height 27 gbm_bo_get_stride 28 gbm_bo_get_stride_for_plane 29 gbm_bo_get_format 30 gbm_bo_get_bpp 31 gbm_bo_get_offset 32 gbm_bo_get_device 33 gbm_bo_get_handle 34 gbm_bo_get_fd 35 gbm_bo_get_plane_count 36 gbm_bo_get_handle_for_plane 37 gbm_bo_get_modifier 38 gbm_bo_write 39 gbm_bo_set_user_data 40 gbm_bo_get_user_data 41 gbm_bo_destroy 42 gbm_surface_create 43 gbm_surface_create_with_modifiers 44 gbm_surface_lock_front_buffer 45 gbm_surface_release_buffer 46 gbm_surface_has_free_buffers 47 gbm_surface_destroy 48 _fini 49 _init 50 EOF 51 done) 52 53 test ! -n "$FUNCS" || echo $FUNCS 54 test ! -n "$FUNCS" 55