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