]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/host_special_ports.h
xnu-6153.121.1.tar.gz
[apple/xnu.git] / osfmk / mach / host_special_ports.h
index f4632ed1386c08842ec52ff6789edcdf60c73392..d09b44b6b624b9fe1dcf928953ddd0819390130d 100644 (file)
 #define HOST_RESOURCE_NOTIFY_PORT       (20 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_CLOSURED_PORT              (21 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_SYSPOLICYD_PORT            (22 + HOST_MAX_SPECIAL_KERNEL_PORT)
+#define HOST_FILECOORDINATIOND_PORT     (23 + HOST_MAX_SPECIAL_KERNEL_PORT)
+#define HOST_FAIRPLAYD_PORT             (24 + HOST_MAX_SPECIAL_KERNEL_PORT)
 
-#define HOST_MAX_SPECIAL_PORT           HOST_SYSPOLICYD_PORT
+#define HOST_MAX_SPECIAL_PORT           HOST_FAIRPLAYD_PORT
 /* MAX = last since rdar://35861175 */
 
 /* obsolete name */
 #define host_set_syspolicyd_port(host, port)    \
        (host_set_special_port((host), HOST_SYSPOLICYD_PORT, (port)))
 
+#define host_get_filecoordinationd_port(host, port)     \
+       (host_get_special_port((host),                  \
+       HOST_LOCAL_NODE, HOST_FILECOORDINATIOND_PORT, (port)))
+#define host_set_filecoordinationd_port(host, port)     \
+       (host_set_special_port((host), HOST_FILECOORDINATIOND_PORT, (port)))
+
+#define host_get_fairplayd_port(host, port)     \
+       (host_get_special_port((host),                  \
+       HOST_LOCAL_NODE, HOST_FAIRPLAYD_PORT, (port)))
+#define host_set_fairplayd_port(host, port)     \
+       (host_set_special_port((host), HOST_FAIRPLAYD_PORT, (port)))
+
 /* HOST_RESOURCE_NOTIFY_PORT doesn't #defines these conveniences.
  *  All lookups go through send_resource_violation()
  */