OSDN Git Service

libkms: annotate public functions
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 13 Sep 2018 20:00:55 +0000 (13:00 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 20 Sep 2018 05:46:45 +0000 (22:46 -0700)
commit6229895cc5c99070db17c7e5413e6bf33fc7f618
tree9abf071b4e579aedda35af7487348551d927dc22
parent36bb0ea47b71d220b31e55717228032fb69b4dee
libkms: annotate public functions

This was done with:
nm --dynamic --defined-only build/libkms/libkms.so | \
grep kms_ | \
cut -d' ' -f3 > /tmp/a.txt

while read sym; do
read f func line _ <<<$(cscope -d -L -1 $sym)
if [ ! -z "$f" ]; then
sed -i "${line}s/^/drm_public /" $f
fi
done < /tmp/a.txt

The idea here will be to switch the default visibility to hidden so we
don't export symbols we shouldn't.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
libkms/api.c