Vuo  1.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
VuoOscDevices.cc File Reference

Description

VuoOscDevices implementation.

Functions

VuoList_VuoOscInputDevice VuoOsc_getInputDeviceList (void)
 Returns a list of the currently-avaialble OSC input devices.
 
VuoList_VuoOscOutputDevice VuoOsc_getOutputDeviceList (void)
 Returns a list of the currently-avaialble OSC output devices.
 
void VuoOsc_clientCallback (CFNetServiceRef service, CFStreamError *error, void *info)
 Called when service details have been resolved.
 
void VuoOsc_deviceCallback (CFNetServiceBrowserRef browser, CFOptionFlags flags, CFTypeRef domainOrService, CFStreamError *error, void *info)
 Called when a new domain or service appears.
 
void VuoOsc_use (void)
 Indicates that the caller needs to get notifications about OSC devices.
 
void VuoOsc_disuse (void)
 Indicates that the caller no longer needs notifications about OSC devices.
 
void VuoOsc_addDevicesChangedTriggers (VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice), VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice))
 Adds a trigger callback, to be invoked whenever the list of known OSC devices changes.
 
void VuoOsc_removeDevicesChangedTriggers (VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice), VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice))
 Removes a trigger callback previously added by VuoOsc_addDevicesChangedTriggers.
 

Variables

static dispatch_queue_t VuoOsc_deviceQueue
 Serializes access to the below device lists.
 
static VuoList_VuoOscInputDevice VuoOsc_inputDevices
 All known input devices.
 
static VuoList_VuoOscOutputDevice VuoOsc_outputDevices
 All known output devices.
 
static VuoTriggerSet
< VuoList_VuoOscInputDevice
VuoOsc_inputDeviceCallbacks
 Trigger functions to call when the list of devices changes.
 
static VuoTriggerSet
< VuoList_VuoOscOutputDevice
VuoOsc_outputDeviceCallbacks
 Trigger functions to call when the list of devices changes.
 
unsigned int VuoOsc_useCount = 0
 Process-wide count of callers (typically node instances) interested in notifications about OSC devices.
 
CFNetServiceBrowserRef VuoOsc_browser
 Manages notifications about OSC devices.
 

Function Documentation

void VuoOsc_addDevicesChangedTriggers ( VuoOutputTrigger(inputDevices,VuoList_VuoOscInputDevice ,
VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice  
)

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

Call VuoOsc_use() before calling this.

This function may be called from any thread.

void VuoOsc_clientCallback ( CFNetServiceRef  service,
CFStreamError *  error,
void *  info 
)

Called when service details have been resolved.

void VuoOsc_deviceCallback ( CFNetServiceBrowserRef  browser,
CFOptionFlags  flags,
CFTypeRef  domainOrService,
CFStreamError *  error,
void *  info 
)

Called when a new domain or service appears.

void VuoOsc_disuse ( void  )

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

This function may be called from any thread.

VuoList_VuoOscInputDevice VuoOsc_getInputDeviceList ( void  )

Returns a list of the currently-avaialble OSC input devices.

VuoList_VuoOscOutputDevice VuoOsc_getOutputDeviceList ( void  )

Returns a list of the currently-avaialble OSC output devices.

void VuoOsc_removeDevicesChangedTriggers ( VuoOutputTrigger(inputDevices,VuoList_VuoOscInputDevice ,
VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice  
)

Removes a trigger callback previously added by VuoOsc_addDevicesChangedTriggers.

This function may be called from any thread.

void VuoOsc_use ( void  )

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

This function may be called from any thread.

Variable Documentation

CFNetServiceBrowserRef VuoOsc_browser

Manages notifications about OSC devices.

dispatch_queue_t VuoOsc_deviceQueue
static

Serializes access to the below device lists.

VuoTriggerSet<VuoList_VuoOscInputDevice> VuoOsc_inputDeviceCallbacks
static

Trigger functions to call when the list of devices changes.

VuoList_VuoOscInputDevice VuoOsc_inputDevices
static

All known input devices.

VuoTriggerSet<VuoList_VuoOscOutputDevice> VuoOsc_outputDeviceCallbacks
static

Trigger functions to call when the list of devices changes.

VuoList_VuoOscOutputDevice VuoOsc_outputDevices
static

All known output devices.

unsigned int VuoOsc_useCount = 0

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