Vuo  1.2.8
Functions
VuoRuntimeContext.c File Reference

Description

VuoRuntimeContext implementation.

Functions

struct PortContextvuoCreatePortContext (void *data, bool isTrigger, const char *triggerQueueName)
 Creates a port context, initializing its fields to default values. More...
 
struct NodeContextvuoCreateNodeContext (bool hasInstanceData, bool isComposition, size_t outputEventCount)
 Creates a node context, initializing its fields to default values. More...
 
void vuoFreePortContext (struct PortContext *portContext)
 Frees the port context and its fields. More...
 
void vuoFreeNodeContext (struct NodeContext *nodeContext)
 Frees the port context and its fields. More...
 
void vuoSetPortContextEvent (struct PortContext *portContext, bool event)
 Sets the port context's event field. More...
 
void vuoSetPortContextData (struct PortContext *portContext, void *data)
 Sets the port context's data field. More...
 
void vuoSetPortContextTriggerFunction (struct PortContext *portContext, void *triggerFunction)
 Sets the port context's triggerFunction field. More...
 
bool vuoGetPortContextEvent (struct PortContext *portContext)
 Gets the port context's event field. More...
 
void * vuoGetPortContextData (struct PortContext *portContext)
 Gets the port context's data field. More...
 
dispatch_queue_t vuoGetPortContextTriggerQueue (struct PortContext *portContext)
 Gets the port context's triggerQueue field. More...
 
dispatch_semaphore_t vuoGetPortContextTriggerSemaphore (struct PortContext *portContext)
 Gets the port context's triggerSemaphore field. More...
 
void * vuoGetPortContextTriggerFunction (struct PortContext *portContext)
 Gets the port context's triggerFunction field. More...
 
void vuoRetainPortContextData (struct PortContext *portContext)
 Prevents the port context's data field from being freed by vuoFreePortContext(). More...
 
void vuoSetNodeContextPortContexts (struct NodeContext *nodeContext, struct PortContext **portContexts, unsigned long portContextCount)
 Sets the node context's portContexts and portContextCount fields. More...
 
void vuoSetNodeContextInstanceData (struct NodeContext *nodeContext, void *instanceData)
 Sets the node context's instanceData field, freeing the previous value. More...
 
void vuoSetNodeContextClaimingEventId (struct NodeContext *nodeContext, unsigned long claimingEventId)
 Sets the node context's claimingEventId field. More...
 
void vuoSetNodeContextExecutingEventId (struct NodeContext *nodeContext, unsigned long executingEventId)
 Sets the node context's executingEventId field. More...
 
void vuoSetNodeContextOutputEvent (struct NodeContext *nodeContext, size_t index, bool event)
 Sets the array element at the given index of the node context's outputEvents field. More...
 
struct PortContextvuoGetNodeContextPortContext (struct NodeContext *nodeContext, size_t index)
 Gets the array element at the given index of the node context's portContexts field. More...
 
void * vuoGetNodeContextInstanceData (struct NodeContext *nodeContext)
 Gets the node context's instanceData field. More...
 
dispatch_semaphore_t vuoGetNodeContextSemaphore (struct NodeContext *nodeContext)
 Gets the node context's semaphore field. More...
 
unsigned long vuoGetNodeContextClaimingEventId (struct NodeContext *nodeContext)
 Gets the node context's claimingEventId field. More...
 
dispatch_group_t vuoGetNodeContextExecutingGroup (struct NodeContext *nodeContext)
 Gets the node context's executingGroup field. More...
 
unsigned long vuoGetNodeContextExecutingEventId (struct NodeContext *nodeContext)
 Gets the node context's executingEventId field. More...
 
bool vuoGetNodeContextOutputEvent (struct NodeContext *nodeContext, size_t index)
 Gets the array element at the given index of the node context's outputEvents field. More...
 
void vuoResetNodeContextEvents (struct NodeContext *nodeContext)
 Sets the event field to false for all of the port contexts in this node context. More...
 

Function Documentation

◆ vuoCreateNodeContext()

struct NodeContext* vuoCreateNodeContext ( bool  hasInstanceData,
bool  isComposition,
size_t  outputEventCount 
)

Creates a node context, initializing its fields to default values.

◆ vuoCreatePortContext()

struct PortContext* vuoCreatePortContext ( void *  data,
bool  isTrigger,
const char *  triggerQueueName 
)

Creates a port context, initializing its fields to default values.

◆ vuoFreeNodeContext()

void vuoFreeNodeContext ( struct NodeContext nodeContext)

Frees the port context and its fields.

◆ vuoFreePortContext()

void vuoFreePortContext ( struct PortContext portContext)

Frees the port context and its fields.

◆ vuoGetNodeContextClaimingEventId()

unsigned long vuoGetNodeContextClaimingEventId ( struct NodeContext nodeContext)

Gets the node context's claimingEventId field.

◆ vuoGetNodeContextExecutingEventId()

unsigned long vuoGetNodeContextExecutingEventId ( struct NodeContext nodeContext)

Gets the node context's executingEventId field.

◆ vuoGetNodeContextExecutingGroup()

dispatch_group_t vuoGetNodeContextExecutingGroup ( struct NodeContext nodeContext)

Gets the node context's executingGroup field.

◆ vuoGetNodeContextInstanceData()

void* vuoGetNodeContextInstanceData ( struct NodeContext nodeContext)

Gets the node context's instanceData field.

◆ vuoGetNodeContextOutputEvent()

bool vuoGetNodeContextOutputEvent ( struct NodeContext nodeContext,
size_t  index 
)

Gets the array element at the given index of the node context's outputEvents field.

◆ vuoGetNodeContextPortContext()

struct PortContext* vuoGetNodeContextPortContext ( struct NodeContext nodeContext,
size_t  index 
)

Gets the array element at the given index of the node context's portContexts field.

◆ vuoGetNodeContextSemaphore()

dispatch_semaphore_t vuoGetNodeContextSemaphore ( struct NodeContext nodeContext)

Gets the node context's semaphore field.

◆ vuoGetPortContextData()

void* vuoGetPortContextData ( struct PortContext portContext)

Gets the port context's data field.

◆ vuoGetPortContextEvent()

bool vuoGetPortContextEvent ( struct PortContext portContext)

Gets the port context's event field.

◆ vuoGetPortContextTriggerFunction()

void* vuoGetPortContextTriggerFunction ( struct PortContext portContext)

Gets the port context's triggerFunction field.

◆ vuoGetPortContextTriggerQueue()

dispatch_queue_t vuoGetPortContextTriggerQueue ( struct PortContext portContext)

Gets the port context's triggerQueue field.

◆ vuoGetPortContextTriggerSemaphore()

dispatch_semaphore_t vuoGetPortContextTriggerSemaphore ( struct PortContext portContext)

Gets the port context's triggerSemaphore field.

◆ vuoResetNodeContextEvents()

void vuoResetNodeContextEvents ( struct NodeContext nodeContext)

Sets the event field to false for all of the port contexts in this node context.

◆ vuoRetainPortContextData()

void vuoRetainPortContextData ( struct PortContext portContext)

Prevents the port context's data field from being freed by vuoFreePortContext().

◆ vuoSetNodeContextClaimingEventId()

void vuoSetNodeContextClaimingEventId ( struct NodeContext nodeContext,
unsigned long  claimingEventId 
)

Sets the node context's claimingEventId field.

◆ vuoSetNodeContextExecutingEventId()

void vuoSetNodeContextExecutingEventId ( struct NodeContext nodeContext,
unsigned long  executingEventId 
)

Sets the node context's executingEventId field.

◆ vuoSetNodeContextInstanceData()

void vuoSetNodeContextInstanceData ( struct NodeContext nodeContext,
void *  instanceData 
)

Sets the node context's instanceData field, freeing the previous value.

◆ vuoSetNodeContextOutputEvent()

void vuoSetNodeContextOutputEvent ( struct NodeContext nodeContext,
size_t  index,
bool  event 
)

Sets the array element at the given index of the node context's outputEvents field.

◆ vuoSetNodeContextPortContexts()

void vuoSetNodeContextPortContexts ( struct NodeContext nodeContext,
struct PortContext **  portContexts,
unsigned long  portContextCount 
)

Sets the node context's portContexts and portContextCount fields.

◆ vuoSetPortContextData()

void vuoSetPortContextData ( struct PortContext portContext,
void *  data 
)

Sets the port context's data field.

◆ vuoSetPortContextEvent()

void vuoSetPortContextEvent ( struct PortContext portContext,
bool  event 
)

Sets the port context's event field.

◆ vuoSetPortContextTriggerFunction()

void vuoSetPortContextTriggerFunction ( struct PortContext portContext,
void *  triggerFunction 
)

Sets the port context's triggerFunction field.