1#!/bin/bash 2 3set -u 4 5# The following symbols (past the first five) are taken from the public headers. 6# A list of the latter should be available Makefile.sources/LIBDRM_NOUVEAU_H_FILES 7 8FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk '{print $3}'| while read func; do 9( grep -q "^$func$" || echo $func ) <<EOF 10__bss_start 11_edata 12_end 13_fini 14_init 15nouveau_bo_map 16nouveau_bo_name_get 17nouveau_bo_name_ref 18nouveau_bo_new 19nouveau_bo_prime_handle_ref 20nouveau_bo_ref 21nouveau_bo_set_prime 22nouveau_bo_wait 23nouveau_bo_wrap 24nouveau_bufctx_del 25nouveau_bufctx_mthd 26nouveau_bufctx_new 27nouveau_bufctx_refn 28nouveau_bufctx_reset 29nouveau_client_del 30nouveau_client_new 31nouveau_device_del 32nouveau_device_new 33nouveau_device_open 34nouveau_device_open_existing 35nouveau_device_wrap 36nouveau_drm_del 37nouveau_drm_new 38nouveau_getparam 39nouveau_object_del 40nouveau_object_mclass 41nouveau_object_mthd 42nouveau_object_new 43nouveau_object_sclass_get 44nouveau_object_sclass_put 45nouveau_pushbuf_bufctx 46nouveau_pushbuf_data 47nouveau_pushbuf_del 48nouveau_pushbuf_kick 49nouveau_pushbuf_new 50nouveau_pushbuf_refd 51nouveau_pushbuf_refn 52nouveau_pushbuf_reloc 53nouveau_pushbuf_space 54nouveau_pushbuf_validate 55nouveau_setparam 56EOF 57done) 58 59test ! -n "$FUNCS" || echo $FUNCS 60test ! -n "$FUNCS" 61