Module Name:    src
Committed By:   thorpej
Date:           Thu Jul  4 15:54:09 UTC 2019

Modified Files:
        src/external/apache2/mDNSResponder/dist/mDNSShared: dnssd_ipc.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
    src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h
diff -u src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h:1.7 src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h:1.8
--- src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h:1.7	Wed Jan 17 06:10:28 2018
+++ src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h	Thu Jul  4 15:54:09 2019
@@ -188,6 +188,18 @@ typedef packedstruct
 // 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);
 

Reply via email to