]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/policy.h
xnu-344.tar.gz
[apple/xnu.git] / osfmk / mach / policy.h
index fdc6f0ecf99bc7a8d56d9a32f44b7300d5298fe6..12df6e4f565ed2a7596f1ca01d9c46f06572108b 100644 (file)
 #include <mach/boolean.h>
 #include <mach/vm_types.h>
 
+#include <sys/appleapiopts.h>
+
+/*
+ *     Old scheduling control interface
+ */
+typedef int                            policy_t;
+typedef integer_t                      *policy_info_t;
+typedef integer_t                      *policy_base_t;
+typedef integer_t                      *policy_limit_t;
+
+#ifdef __APPLE_API_UNSTABLE
+
 /*
  *     Policy definitions.  Policies should be powers of 2,
  *     but cannot be or'd together other than to test for a
         (policy) != POLICY_FIFO)
 
 
-/*
- *     New scheduling control interface
- */
-typedef int                            policy_t;
-typedef integer_t                      *policy_info_t;
-typedef integer_t                      *policy_base_t;
-typedef integer_t                      *policy_limit_t;
-
-
 /*
  *     Types for TIMESHARE policy
  */
@@ -224,4 +227,6 @@ typedef struct policy_bases         policy_base_data_t;
 typedef struct policy_limits           policy_limit_data_t;
 typedef struct policy_infos            policy_info_data_t;
 
+#endif /* __APPLE_API_UNSTABLE */
+
 #endif /* _MACH_POLICY_H_ */