#!/bin/bash
echo "List of ALSA sequencer/midi/timer symbols not yet wrapped by drumstick"
K=0
objdump -t -j *UND* build/library/libdrumstick.a | awk '{print $4}' | grep "^snd" > lib.txt
nm --defined-only -D /usr/lib/libasound.so | awk '{print $3}'| egrep "^snd_(seq|midi|timer)" |\
while read W; do
    grep -q $W lib.txt
    if [ "$?" != "0" ]; then
	let K++
	echo "$K $W"
    fi
done
rm -f lib.txt
