()
return io_lib
Sets up IOKit.

  We use ctypes to call functions in shared libraries to create, access and
  manipulate C data types in Python. For more information about ctypes, see:

  http://python.net/crew/theller/ctypes/
  http://code.rancidbacon.com/LearningAboutMacOSXNativePythonProgramming

  Returns:
    io_lib: IOKit library
Sets up IOKit.
Sets up IOKit .
def ConfigureIOKit():
  """Sets up IOKit.

  We use ctypes to call functions in shared libraries to create, access and
  manipulate C data types in Python. For more information about ctypes, see:

  http://python.net/crew/theller/ctypes/
  http://code.rancidbacon.com/LearningAboutMacOSXNativePythonProgramming

  Returns:
    io_lib: IOKit library
  """
  io_lib = ctypes.cdll.LoadLibrary(
      '/System/Library/Frameworks/IOKit.framework/IOKit')
  io_lib.IOPMAssertionCreateWithName.argtypes = [
      ctypes.c_void_p,
      ctypes.c_uint32,
      ctypes.c_void_p,
      ctypes.POINTER(ctypes.c_uint32)]
  io_lib.IOPMAssertionRelease.argtypes = [ctypes.c_uint32]
  return io_lib
def ConfigureIOKit ( ) : io_lib = ctypes . cdll . LoadLibrary ( '/System/Library/Frameworks/IOKit.framework/IOKit' ) io_lib . IOPMAssertionCreateWithName . argtypes = [ ctypes . c_void_p , ctypes . c_uint32 , ctypes . c_void_p , ctypes . POINTER ( ctypes . c_uint32 ) ] io_lib . IOPMAssertionRelease . argtypes = [ ctypes . c_uint32 ] return io_lib