     private let TASK_EVENTS_INFO_COUNT		  : mach_msg_type_number_t =
                      UInt32(sizeof(task_events_info_data_t) / sizeof(natural_t))
     private let TASK_KERNELMEMORY_INFO_COUNT  : mach_msg_type_number_t =
-              UInt32(sizeof(task_kernelmemory_info_data_t) / sizeof (natural_t))
+               UInt32(sizeof(task_kernelmemory_info_data_t) / sizeof(natural_t))
     private let TASK_POWER_INFO_COUNT         : mach_msg_type_number_t =
-                     UInt32(sizeof(task_power_info_data_t) / sizeof (natural_t))
+                      UInt32(sizeof(task_power_info_data_t) / sizeof(natural_t))
+    private let TASK_POWER_INFO_V2_COUNT	  : mach_msg_type_number_t =
+                   UInt32(sizeof(task_power_info_v2_data_t) / sizeof(natural_t))
     private let TASK_VM_INFO_COUNT            : mach_msg_type_number_t =
-                       UInt32(sizeof (task_vm_info_data_t) / sizeof (natural_t))
+                         UInt32(sizeof(task_vm_info_data_t) / sizeof(natural_t))
     private let THREAD_BASIC_INFO_COUNT       : mach_msg_type_number_t =
                     UInt32(sizeof(thread_basic_info_data_t) / sizeof(natural_t))
     

import Foundation

// Via <mach/machine.h>

let CPU_TYPE_X86       : cpu_type_t = 7
let CPU_TYPE_I386      : cpu_type_t = CPU_TYPE_X86

    // Assuming x86 for now
    
    public func isProcforeign(procCPUType: cpu_type_t) -> Bool {
        // "The arch(arm) build configuration does not return true for ARM 64
        //  devices. The arch(i386) build configuration returns true when code
        //  is compiled for the 32–bit iOS simulator." ...
//        #if arch(i386) || arch(x86_64)
            return procCPUType == CPU_TYPE_X86_64 || procCPUType == CPU_TYPE_X86
//        #elseif arch(arm) || arch(arm64)
//            return procCPUType == CPU_TYPE_ARM || procCPUType == CPU_TYPE_ARM_64
//        #endif
    }
    
    
