IOVideoDeviceLib.h User-Space

Overview

Included Headers

  • <CoreFoundation/CoreFoundation.h>

  • <IOKit/IOKitLib.h>

  • <IOKit/IOCFPlugIn.h>

  • <IOKit/stream/IOStreamLib.h>

  • <IOKit/stream/IOStreamShared.h>

  • <IOKit/video/IOVideoDeviceShared.h>

  • <IOKit/video/IOVideoTypes.h>

Topics

Opening and closing VideoDevices

AddToRunLoop

Add the CFRunLoopSource for the notification port to a run loop.

Close

Closes an IOStream.

GetNotificationPort

Get the notification port for device state changes sent to user space.

GetRunLoopSource

Gets a CFRunLoopSource for the CFMachPort used for notifications from the kernel that data is ready.

Open

Open an IOStream from user space.

RemoveFromRunLoop

Remove the CFRunLoopSource for the notification port from a run loop.

SetNotificationCallback

Set the callback function to be called when certain device state changes happen.

Callbacks

See the Overview for header-level documentation.

Data Types

See the Overview for header-level documentation.

IOVideoDeviceInterface_v1_t

Forward declaration of IOVideoDeviceInterface_v1_t.

Constants

See the Overview for header-level documentation.