aboutsummaryrefslogtreecommitdiff
path: root/scripts/listpublic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/listpublic')
-rwxr-xr-xscripts/listpublic12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/listpublic b/scripts/listpublic
new file mode 100755
index 00000000..d864e7ee
--- /dev/null
+++ b/scripts/listpublic
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# List public API symbols...
+#
+
+for function in `nm -g *.so | grep "T " | awk '{print $3}' | grep -v '^_' | sort`; do
+ found=`grep $function\( *.h | grep -v DEPRECATED`
+
+ if test "x$found" != x; then
+ echo $function
+ fi
+done