]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/work_interval.h
xnu-6153.141.1.tar.gz
[apple/xnu.git] / bsd / sys / work_interval.h
index 797f929bc751935cf5c93ac9c967b4124a194e56..695a28ea1913b1c58bac6576dabb98bee86fe2ea 100644 (file)
@@ -118,6 +118,7 @@ __BEGIN_DECLS
 #define WORK_INTERVAL_TYPE_CA_RENDER_SERVER     (0x2 << 28)
 #define WORK_INTERVAL_TYPE_CA_CLIENT            (0x3 << 28)
 #define WORK_INTERVAL_TYPE_HID_DELIVERY         (0x4 << 28)
+#define WORK_INTERVAL_TYPE_COREMEDIA            (0x5 << 28)
 #define WORK_INTERVAL_TYPE_LAST                 (0xF << 28)
 
 #ifndef KERNEL
@@ -161,9 +162,9 @@ int     work_interval_create(work_interval_t *interval_handle, uint32_t flags);
  * Only the process which created the work interval may notify
  */
 int     work_interval_notify(work_interval_t    interval_handle,
-                             uint64_t start,    uint64_t finish,
-                             uint64_t deadline, uint64_t next_start,
-                             uint32_t flags);
+    uint64_t start, uint64_t finish,
+    uint64_t deadline, uint64_t next_start,
+    uint32_t flags);
 
 /*
  * Notify, with "finish" implicitly set to the current time
@@ -171,8 +172,8 @@ int     work_interval_notify(work_interval_t    interval_handle,
  * Only the process which created the work interval may notify
  */
 int     work_interval_notify_simple(work_interval_t interval_handle,
-                                    uint64_t start, uint64_t deadline,
-                                    uint64_t next_start);
+    uint64_t start, uint64_t deadline,
+    uint64_t next_start);
 
 /*
  * Deallocate work interval handle
@@ -230,12 +231,12 @@ int     work_interval_leave(void);
 #define WORK_INTERVAL_OPERATION_JOIN    0x00000005      /* arg is a port_name */
 
 struct work_interval_notification {
-       uint64_t        start;
-       uint64_t        finish;
-       uint64_t        deadline;
-       uint64_t        next_start;
-       uint32_t        notify_flags;
-       uint32_t        create_flags;
+       uint64_t        start;
+       uint64_t        finish;
+       uint64_t        deadline;
+       uint64_t        next_start;
+       uint32_t        notify_flags;
+       uint32_t        create_flags;
 };
 typedef struct work_interval_notification *work_interval_notification_t;
 
@@ -253,4 +254,3 @@ int     __work_interval_ctl(uint32_t operation, uint64_t work_interval_id, void
 __END_DECLS
 
 #endif /* _SYS_WORK_INTERVAL_H */
-