Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSShared Get the very ...



details:   https://anonhg.NetBSD.org/src/rev/8a0dadea2dd3
branches:  trunk
changeset: 1000080:8a0dadea2dd3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 04 15:54:09 2019 +0000

description:
Get the very generically-named put_uint32(), etc. out of the application
namespace.  These symbols are not intended to be used outside of the
dns_sd library.

diffstat:

 external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h |  12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r f5678da54628 -r 8a0dadea2dd3 external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h
--- a/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h        Thu Jul 04 15:31:37 2019 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h        Thu Jul 04 15:54:09 2019 +0000
@@ -188,6 +188,18 @@
 // ptr is the address of the pointer to the start of the field.
 // it is advanced to point to the next field, or the end of the message
 
+// Keep these out of the general namespace -- they're only used internally
+// by the library.
+#define put_uint32             __dnssd_ipc_put_uint32
+#define get_uint32             __dnssd_ipc_get_uint32
+#define put_uint16             __dnssd_ipc_put_uint16
+#define get_uint16             __dnssd_ipc_get_uint16
+#define put_string             __dnssd_ipc_put_string
+#define get_string             __dnssd_ipc_get_string
+#define put_rdata              __dnssd_ipc_put_rdata
+#define get_rdata              __dnssd_ipc_get_rdata
+#define ConvertHeaderBytes     __dnssd_ipc_ConvertHeaderBytes
+
 void put_uint32(const uint32_t l, char **ptr);
 uint32_t get_uint32(const char **ptr, const char *end);
 



Home | Main Index | Thread Index | Old Index