]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Script to list public API functions in a DSO.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 3 Apr 2006 19:41:51 +0000 (19:41 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 3 Apr 2006 19:41:51 +0000 (19:41 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@5370 7a7537e8-13f0-0310-91df-b6672ffda945

tools/listpublic [new file with mode: 0755]

diff --git a/tools/listpublic b/tools/listpublic
new file mode 100755 (executable)
index 0000000..d864e7e
--- /dev/null
@@ -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