]> git.saurik.com Git - apple/libinfo.git/blobdiff - mdns.subproj/DNSServiceDiscoveryRequest.defs
Libinfo-222.4.12.tar.gz
[apple/libinfo.git] / mdns.subproj / DNSServiceDiscoveryRequest.defs
index 29495f8f8ec689688656ce3723659986724f90f9..d14917ac65020bcdcc1fefb6ad1a16a50e789825 100644 (file)
@@ -33,6 +33,7 @@ import "DNSServiceDiscoveryDefines.h";
 type DNSCString = c_string[*:1024];
 type record_data = ^ array [] of MACH_MSG_TYPE_BYTE
                                ctype: record_data_t;
+type IPPort = struct[4] of char ctype:IPPort;
 
 simpleroutine DNSServiceBrowserCreate_rpc(
                                server: mach_port_t;
@@ -52,7 +53,7 @@ simpleroutine DNSServiceRegistrationCreate_rpc(
                         in     name: DNSCString;
                         in     regtype: DNSCString;
                         in     domain: DNSCString;
-                        in     port: int;
+                        in     port: IPPort;
                         in     txtRecord: DNSCString);