2014-05-26 08:19:02 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
write_symbols() {
|
|
|
|
OUTPUT=$1
|
|
|
|
shift
|
2014-11-03 08:17:14 -06:00
|
|
|
grep 'getdns_[0-9a-zA-Z_]*(' $* | grep -v '^#' | grep -v 'INLINE' \
|
2016-05-19 08:24:01 -05:00
|
|
|
| sed -e 's/(.*$//g' -e 's/^.*getdns_/getdns_/g' | LC_ALL=C sort | uniq > $OUTPUT
|
2014-05-26 08:19:02 -05:00
|
|
|
}
|
|
|
|
|
2015-12-16 08:48:09 -06:00
|
|
|
write_symbols libgetdns.symbols getdns/getdns.h.in getdns/getdns_extra.h.in
|
2015-08-24 07:37:02 -05:00
|
|
|
echo plain_mem_funcs_user_arg >> libgetdns.symbols
|
2014-10-14 18:13:39 -05:00
|
|
|
echo priv_getdns_context_mf >> libgetdns.symbols
|
2014-05-26 08:19:02 -05:00
|
|
|
write_symbols extension/libevent.symbols getdns/getdns_ext_libevent.h
|
|
|
|
write_symbols extension/libev.symbols getdns/getdns_ext_libev.h
|
|
|
|
write_symbols extension/libuv.symbols getdns/getdns_ext_libuv.h
|
|
|
|
|