diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-17 02:23:37 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-17 02:23:37 -0700 |
commit | 8b6b13d4cbb685db047af04c49817ed81fff7c35 (patch) | |
tree | 7ba565e6cfa2a8e0f25952bc720c389512255170 /nametoaddr.h | |
parent | bb02779a37fdf815da58e8828eb4ce99a4f86580 (diff) |
Don't wrap chunks of headers with extern "C" { ... }.
Instead, explictly flag individual functions with extern "C" by adding
it to the tag we're already using for exported functions, and creating a
new tag to use for non-exported functions.
Rename those tags, and the tags used for exported data, to say what they
do, rather than saying "this is an API" (we may export things we don't
want to be treated as part of the API, but that we have to export
because some programs use them).
Diffstat (limited to 'nametoaddr.h')
-rw-r--r-- | nametoaddr.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/nametoaddr.h b/nametoaddr.h index fd6b7e10..df21c909 100644 --- a/nametoaddr.h +++ b/nametoaddr.h @@ -31,18 +31,10 @@ * SUCH DAMAGE. */ -#ifdef __cplusplus -extern "C" { -#endif - /* * Routines used for name-or-address-string-to-address resolution * that are *not* exported to code using libpcap. */ -int __pcap_atodn(const char *, bpf_u_int32 *); -int __pcap_atoin(const char *, bpf_u_int32 *); -int __pcap_nametodnaddr(const char *, u_short *); - -#ifdef __cplusplus -} -#endif +PCAP_UNEXPORTED_C_FUNC int __pcap_atodn(const char *, bpf_u_int32 *); +PCAP_UNEXPORTED_C_FUNC int __pcap_atoin(const char *, bpf_u_int32 *); +PCAP_UNEXPORTED_C_FUNC int __pcap_nametodnaddr(const char *, u_short *); |