]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/task_policy.h
xnu-201.tar.gz
[apple/xnu.git] / osfmk / mach / task_policy.h
index 9a57a45fd3861a35fff1f55d7a3d2ccfb8240baa..cbf35f467189b5062718a61e4902dbf8bcf51c8f 100644 (file)
@@ -108,14 +108,19 @@ kern_return_t     task_policy_get(
 
 #define TASK_CATEGORY_POLICY           1
 
+enum task_role {
+       TASK_RENICED = -1,
+       TASK_UNSPECIFIED = 0,
+       TASK_FOREGROUND_APPLICATION,
+       TASK_BACKGROUND_APPLICATION,
+       TASK_CONTROL_APPLICATION,
+       TASK_GRAPHICS_SERVER
+};
+
+typedef enum task_role         task_role_t;
+
 struct task_category_policy {
-       enum {
-               TASK_UNSPECIFIED = 0,
-               TASK_FOREGROUND_APPLICATION,
-               TASK_BACKGROUND_APPLICATION,
-               TASK_CONTROL_APPLICATION,
-               TASK_GRAPHICS_SERVER,
-       }                               role;
+       task_role_t             role;
 };
 
 typedef struct task_category_policy            task_category_policy_data_t;