Vuo  1.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
VuoSerialDevices.cc File Reference

Description

VuoSerial implementation.

Functions

static VuoText VuoSerial_getPropertyFromObjectOrAncestry (io_object_t o, CFStringRef property)
 Searches o and its parents recursively for property, assumed to be a string.
 
VuoList_VuoSerialDevice VuoSerial_getDeviceList (void)
 Returns a list of the currently-avaialble serial devices.
 
static void VuoSerial_servicesChanged (void *refcon, io_iterator_t it)
 Invoked by the IONotification system when a serial port is added or removed.
 
void VuoSerial_use (void)
 Indicates that the caller needs to get notifications about serial devices.
 
void VuoSerial_disuse (void)
 Indicates that the caller no longer needs notifications about serial devices.
 
void VuoSerial_addDevicesChangedTriggers (VuoOutputTrigger(devices, VuoList_VuoSerialDevice))
 Adds a trigger callback, to be invoked whenever the list of known serial devices changes.
 
void VuoSerial_removeDevicesChangedTriggers (VuoOutputTrigger(devices, VuoList_VuoSerialDevice))
 Removes a trigger callback previously added by VuoSerial_addDevicesChangedTriggers.
 

Variables

static VuoTriggerSet
< VuoList_VuoSerialDevice
VuoSerial_deviceCallbacks
 Trigger functions to call when the list of devices changes.
 
unsigned int VuoSerial_useCount = 0
 Process-wide count of callers (typically node instances) interested in notifications about serial devices.
 
IONotificationPortRef VuoSerial_notificationPort
 Manages notifications about seiral devices.
 

Function Documentation

void VuoSerial_addDevicesChangedTriggers ( VuoOutputTrigger(devices, VuoList_VuoSerialDevice )

Adds a trigger callback, to be invoked whenever the list of known serial devices changes.

Call VuoSerial_use() before calling this.

This function may be called from any thread.

void VuoSerial_disuse ( void  )

Indicates that the caller no longer needs notifications about serial devices.

This function may be called from any thread.

VuoList_VuoSerialDevice VuoSerial_getDeviceList ( void  )

Returns a list of the currently-avaialble serial devices.

static VuoText VuoSerial_getPropertyFromObjectOrAncestry ( io_object_t  o,
CFStringRef  property 
)
static

Searches o and its parents recursively for property, assumed to be a string.

void VuoSerial_removeDevicesChangedTriggers ( VuoOutputTrigger(devices, VuoList_VuoSerialDevice )

Removes a trigger callback previously added by VuoSerial_addDevicesChangedTriggers.

This function may be called from any thread.

static void VuoSerial_servicesChanged ( void *  refcon,
io_iterator_t  it 
)
static

Invoked by the IONotification system when a serial port is added or removed.

void VuoSerial_use ( void  )

Indicates that the caller needs to get notifications about serial devices.

This function may be called from any thread.

Variable Documentation

VuoTriggerSet<VuoList_VuoSerialDevice> VuoSerial_deviceCallbacks
static

Trigger functions to call when the list of devices changes.

IONotificationPortRef VuoSerial_notificationPort

Manages notifications about seiral devices.

unsigned int VuoSerial_useCount = 0

Process-wide count of callers (typically node instances) interested in notifications about serial devices.