|
MXL : Media eXchange Layer
MXL
|
Public flow reader, writer, payload and synchronization APIs. More...
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <mxl/flowinfo.h>#include <mxl/mxl.h>

Go to the source code of this file.
Classes | |
| struct | mxlBufferSlice_t |
| struct | mxlEventInfo_t |
| Metadata for one event queue entry, either a complete event or a fragment. More... | |
| struct | mxlGrainInfo_t |
| struct | mxlMutableBufferSlice_t |
| struct | mxlMutableWrappedBufferSlice_t |
| struct | mxlMutableWrappedMultiBufferSlice_t |
| struct | mxlWrappedBufferSlice_t |
| struct | mxlWrappedMultiBufferSlice_t |
Macros | |
| #define | MXL_GRAIN_FLAG_INVALID 0x00000001 |
| #define | MXL_GRAIN_VALID_SLICES_ALL ((uint16_t)UINT16_MAX) |
| #define | MXL_GRAIN_VALID_SLICES_ANY ((uint16_t)0) |
Typedefs | |
| typedef struct mxlBufferSlice_t | mxlBufferSlice |
| typedef struct mxlEventInfo_t | mxlEventInfo |
| Metadata for one event queue entry, either a complete event or a fragment. | |
| typedef struct mxlFlowReader_t * | mxlFlowReader |
| typedef struct mxlFlowSynchronizationGroup_t * | mxlFlowSynchronizationGroup |
| typedef struct mxlFlowWriter_t * | mxlFlowWriter |
| typedef struct mxlGrainInfo_t | mxlGrainInfo |
| typedef struct mxlMutableBufferSlice_t | mxlMutableBufferSlice |
| typedef struct mxlMutableWrappedBufferSlice_t | mxlMutableWrappedBufferSlice |
| typedef struct mxlMutableWrappedMultiBufferSlice_t | mxlMutableWrappedMultiBufferSlice |
| typedef struct mxlWrappedBufferSlice_t | mxlWrappedBufferSlice |
| typedef struct mxlWrappedMultiBufferSlice_t | mxlWrappedMultiBufferSlice |
Public flow reader, writer, payload and synchronization APIs.
Definition in file flow.h.
| #define MXL_GRAIN_VALID_SLICES_ALL ((uint16_t)UINT16_MAX) |
| #define MXL_GRAIN_VALID_SLICES_ANY ((uint16_t)0) |
| typedef struct mxlBufferSlice_t mxlBufferSlice |
A helper type used to describe consecutive sequences of bytes in memory.
| typedef struct mxlEventInfo_t mxlEventInfo |
Metadata for one event queue entry, either a complete event or a fragment.
| typedef struct mxlFlowReader_t* mxlFlowReader |
| typedef struct mxlFlowSynchronizationGroup_t* mxlFlowSynchronizationGroup |
| typedef struct mxlFlowWriter_t* mxlFlowWriter |
| typedef struct mxlGrainInfo_t mxlGrainInfo |
| typedef struct mxlMutableBufferSlice_t mxlMutableBufferSlice |
A helper type used to describe consecutive sequences of mutable bytes in memory.
| typedef struct mxlMutableWrappedBufferSlice_t mxlMutableWrappedBufferSlice |
A helper type used to describe consecutive sequences of mutable bytes in a ring buffer that may potentially straddle the wraparound point of the buffer.
A helper type used to describe consecutive sequences of mutable bytes in memory in consecutive ring buffers separated by the specified stride of bytes.
| typedef struct mxlWrappedBufferSlice_t mxlWrappedBufferSlice |
A helper type used to describe consecutive sequences of bytes in a ring buffer that may potentially straddle the wraparound point of the buffer.
| typedef struct mxlWrappedMultiBufferSlice_t mxlWrappedMultiBufferSlice |
A helper type used to describe consecutive sequences of bytes in memory in consecutive ring buffers separated by the specified stride of bytes.
| MXL_EXPORT mxlStatus mxlCreateFlowReader | ( | mxlInstance | instance, |
| char const * | flowId, | ||
| char const * | options, | ||
| mxlFlowReader * | reader ) |
Open a reader for an existing flow.
| [in] | instance | The mxl instance created using mxlCreateInstance |
| [in] | flowId | The id of the flow to read, as a UUID string. |
| [in] | options | (optional) Additional options, can be NULL |
| [out] | reader | A pointer to a memory location where the created flow reader will be written. |
| MXL_STATUS_OK | The reader was created. |
| MXL_ERR_INVALID_ARG | The instance, the flow id or the reader pointer is not valid. |
| MXL_ERR_FLOW_NOT_FOUND | There is no flow with this id in the domain. |
| MXL_ERR_PERMISSION_DENIED | The files of the flow cannot be accessed with the permissions of the process. |
| MXL_ERR_UNKNOWN | Any other failure. |
Definition at line 136 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlCreateFlowSynchronizationGroup | ( | mxlInstance | instance, |
| mxlFlowSynchronizationGroup * | group ) |
Create a new, empty synchronization group that can be used to synchronize on data availability across multiple flows in parallel.
| [in] | instance | The instance to which the flow readers handled by this group belong. |
| [out] | group | A handle referring to the newly created group. |
Definition at line 770 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlCreateFlowWriter | ( | mxlInstance | instance, |
| char const * | flowDef, | ||
| char const * | options, | ||
| mxlFlowWriter * | writer, | ||
| mxlFlowConfigInfo * | configInfo, | ||
| bool * | created ) |
Attempts to create a flow writer for a given flow definition. If the flow does not exist already, it is created and 'created' will be set to true. If the flow exists, it will be opened and 'created' will be set to false. If the flow exists already it is not guaranteed that the flow definition of the existing flow is exactly equal to the flow definition supplied in flowDef. The definition of the existing flow can be retrieved using mxlGetFlowDef().
IMPORTANT NOTE
The flow definition (flowDef) is expected to have well defined fields such as label, description and grouphint tag. This is a responsibility of the media function implementer. These fields should refer to the media function instance name. For example, on a large system with mutliple software defined decoders running simultaneously, each decoder instance should use a unique name in the grouphint tag to identify itself. Please read carefully the 'natural groups' section of the group hint tag specification.
Example fields for an hypothetical video decoder media function instance named "Decoder 1":
Example fields for a multi-flow audio receiver media function instance named "Audio Receiver A": Flow 1:
Flow 2:
Having a well formed grouphint tag refering to the media function instance name is essential to ensure proper flow discovery and management by higher level applications using MXL.
| [in] | instance | The mxl instance created using mxlCreateInstance |
| [in] | flowDef | The flow definition from which a flow should be created if there is not already a flow with the same flow id. |
| [in] | options | (optional) Additional options, can be NULL |
| [out] | writer | A pointer to a memory location where the created flow writer will be written. |
| [out] | configInfo | (optional) A pointer to an mxlFlowConfigInfo structure. If not the null pointer, this structure will be updated with the flow information after the flow is created. |
| [out] | created | (optional) A pointer to a boolean. If not the null pointer, this variable will be set to true if a new flow was created, and to false if an existing flow was opened instead. |
Definition at line 198 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetConfigInfo | ( | mxlFlowReader | reader, |
| mxlFlowConfigInfo * | info ) |
Get a copy of the immutable descriptive header of a Flow
| [in] | reader | A valid flow reader |
| [out] | info | A valid pointer to an mxlFlowConfigInfo structure. On return, the structure will be updated with a copy of the current flow config info value. |
Definition at line 316 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetEvent | ( | mxlFlowReader | reader, |
| uint64_t | timeoutNs, | ||
| mxlEventInfo * | event, | ||
| uint8_t ** | payload ) |
Read the next event using this reader's queue cursor, starting with the oldest retained event. An overrun advances the cursor past lost entries; retry to resume reading. Each reader handle must be accessed by a single thread at a time. Payload is a private snapshot, valid until the next read attempt on this reader or reader release. Producers and independent readers cannot overwrite it. Metadata includes the queue index on success; event and payload output arguments are unchanged on failure.
| [in] | reader | Event flow reader acquired with mxlCreateFlowReader. |
| [in] | timeoutNs | Maximum wait in nanoseconds; zero requests a nonblocking read. |
| [out] | event | Receives metadata on success; must not be NULL. |
| [out] | payload | Receives the private payload snapshot on success; must not be NULL. |
| MXL_STATUS_OK | One entry was copied and the cursor advanced. |
| MXL_ERR_OUT_OF_RANGE_TOO_EARLY | No entry was available before the deadline. |
| MXL_ERR_OUT_OF_RANGE_TOO_LATE | An entry was lost to ring overwrite. |
| MXL_ERR_FLOW_INVALID | Stored metadata is invalid or a removed/replaced flow was detected. |
| MXL_ERR_INVALID_ARG | An output pointer is NULL. |
| MXL_ERR_INVALID_FLOW_READER | The handle is NULL or is not an event reader. |
| MXL_ERR_UNKNOWN | An internal exception occurred. |
Definition at line 726 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetEventNonBlocking | ( | mxlFlowReader | reader, |
| mxlEventInfo * | event, | ||
| uint8_t ** | payload ) |
Attempt to read one event entry without waiting for publication.
| [in] | reader | Event flow reader to advance. |
| [out] | event | Receives metadata on success; must not be NULL. |
| [out] | payload | Receives a private payload snapshot on success; must not be NULL. |
Definition at line 748 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetGrain | ( | mxlFlowReader | reader, |
| uint64_t | index, | ||
| uint64_t | timeoutNs, | ||
| mxlGrainInfo * | grain, | ||
| uint8_t ** | payload ) |
Accessors for a flow grain at a specific index This method is expected to wait until the full grain is available (or the timeout expires). For partial grain access use mxlFlowReaderGetGrainSlice()
| [in] | reader | A valid discrete flow reader. |
| [in] | index | The index of the grain to obtain |
| [in] | timeoutNs | How long should we wait for the grain (in nanoseconds) |
| [out] | grain | The requested mxlGrainInfo structure. |
| [out] | payload | The requested grain payload. |
Definition at line 362 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetGrainNonBlocking | ( | mxlFlowReader | reader, |
| uint64_t | index, | ||
| mxlGrainInfo * | grain, | ||
| uint8_t ** | payload ) |
Non-blocking accessor for a flow grain at a specific index
| [in] | reader | A valid flow reader |
| [in] | index | The index of the grain to obtain |
| [out] | grain | The requested mxlGrainInfo structure. |
| [out] | payload | The requested grain payload. |
Definition at line 392 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetGrainSlice | ( | mxlFlowReader | reader, |
| uint64_t | index, | ||
| uint16_t | minValidSlices, | ||
| uint64_t | timeoutNs, | ||
| mxlGrainInfo * | grain, | ||
| uint8_t ** | payload ) |
Accessors for a flow grain at a specific index, with a minimum number of valid slices.
| [in] | reader | A valid discrete flow reader. |
| [in] | index | The index of the grain to obtain |
| [in] | minValidSlices | The minimum number of valid slices required in the returned grain. |
| [in] | timeoutNs | How long should we wait for the slice (in nanoseconds) |
| [out] | grain | The requested mxlGrainInfo structure. |
| [out] | payload | The requested grain payload. |
Definition at line 369 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetGrainSliceNonBlocking | ( | mxlFlowReader | reader, |
| uint64_t | index, | ||
| uint16_t | minValidSlices, | ||
| mxlGrainInfo * | grain, | ||
| uint8_t ** | payload ) |
Non-blocking accessor for a flow grain at a specific index, with a minimum number of valid slices.
| [in] | reader | A valid discrete flow reader. |
| [in] | index | The index of the grain to obtain |
| [in] | minValidSlices | The minimum number of valid slices required in the returned grain. |
| [out] | grain | The requested mxlGrainInfo structure. |
| [out] | payload | The requested grain payload. |
Definition at line 399 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetInfo | ( | mxlFlowReader | reader, |
| mxlFlowInfo * | info ) |
Get a copy of the header of a Flow
| [in] | reader | A valid flow reader |
| [out] | info | A valid pointer to an mxlFlowInfo structure. On return, the structure will be updated with a copy of the current flow config info value. |
Definition at line 293 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetMaxReadLengthSamples | ( | mxlFlowReader | reader, |
| size_t * | maxReadLength ) |
Return the absolute maximum number of samples a read operation may retrieve from a flow.
| [in] | reader | A valid flow reader |
| [out] | maxReadLength | A valid pointer referring to the location, in which to store the maximum number of samples a read operation may retrieve from the flow reader operates on. |
Definition at line 510 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetRuntimeInfo | ( | mxlFlowReader | reader, |
| mxlFlowRuntimeInfo * | info ) |
Get a copy of the current runtime header of a Flow
| [in] | reader | A valid flow reader |
| [out] | info | A valid pointer to an mxlFlowRuntimeInfo structure. On return, the structure will be updated with a copy of the current flow config info value. |
Definition at line 339 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetSamples | ( | mxlFlowReader | reader, |
| uint64_t | index, | ||
| size_t | count, | ||
| uint64_t | timeoutNs, | ||
| mxlWrappedMultiBufferSlice * | payloadBuffersSlices ) |
Accessor for a specific set of samples across all channels ending at a specific index (count samples up to index).
| [in] | index | The head index of the samples to obtain. |
| [in] | count | The number of samples to obtain. |
| [in] | timeoutNs | How long to wait in nanoseconds for the range of samples to become available. |
| [out] | payloadBuffersSlices | A pointer to a wrapped multi buffer slice that represents the requested range across all channel buffers. |
Definition at line 534 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowReaderGetSamplesNonBlocking | ( | mxlFlowReader | reader, |
| uint64_t | index, | ||
| size_t | count, | ||
| mxlWrappedMultiBufferSlice * | payloadBuffersSlices ) |
Non-blocking accessor for a specific set of samples across all channels ending at a specific index (count samples up to index).
| [in] | index | The head index of the samples to obtain. |
| [in] | count | The number of samples to obtain. |
| [out] | payloadBuffersSlices | A pointer to a wrapped multi buffer slice that represents the requested range across all channel buffers. |
Definition at line 558 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupAddPartialGrainReader | ( | mxlFlowSynchronizationGroup | group, |
| mxlFlowReader | reader, | ||
| uint16_t | minValidSlices ) |
Add a grain based flow reader to a synchronization group. This causes the wait operation of the group to wait for at least minValidSlices of the grain belonging to the specified timestamp to become.
| [in] | group | A handle to the synchronization group, to which the flow reader shall be added. |
| [in] | reader | A handle to a discrete flow reader that shall be added to the synchronization group. |
| [in] | minValidSlices | The number of valid slices to wait for within a grain of the flow the reader operates on. |
Definition at line 846 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupAddReader | ( | mxlFlowSynchronizationGroup | group, |
| mxlFlowReader | reader ) |
Add a flow reader to a synchronization group. This can either be a reader for a continuous, sample based flow or a discrete, grain based flow. For sample based flows this causes the wait operation of the group to wait for the sample belonging to the specified timestamp to become available. For grain based flows this causes the wait operation of the group to wait for the grain belonging to the specified timestamp to become fully available.
| [in] | group | A handle to the synchronization group, to which the flow reader shall be added. |
| [in] | reader | A handle to a flow reader that shall be added to the synchronization group. |
Definition at line 813 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupRemoveReader | ( | mxlFlowSynchronizationGroup | group, |
| mxlFlowReader | reader ) |
Remove a flow reader from a synchronization group.
| [in] | group | A handle to the synchronization group, from which the flow reader shall be removed. |
| [in] | reader | A handle to a flow reader that shall be removed from the synchronization group. |
Definition at line 871 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupWaitForDataAt | ( | mxlFlowSynchronizationGroup | group, |
| uint64_t | timestamp, | ||
| uint64_t | timeoutNs ) |
Wait for the data corresponding to the specified timestamp to become available accross all flows currently added to the group.
| [in] | group | A handle to the synchronization group that specifies the flows on which to wait for data. |
| [in] | timestamp | The timestamp for which to wait for corresponding data on each flow. |
| [in] | timeoutNs | How long to wait for all data to become available (in nanoseconds). |
Definition at line 893 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterCancelEvent | ( | mxlFlowWriter | writer | ) |
Cancel the open event without publishing or changing timestamp ordering.
| [in] | writer | Writer whose open event is to be discarded. |
| MXL_STATUS_OK | The write transaction was closed. |
| MXL_ERR_INVALID_ARG | No event is open. |
| MXL_ERR_INVALID_FLOW_WRITER | The handle is NULL or is not an event writer. |
| MXL_ERR_UNKNOWN | An internal exception occurred. |
Definition at line 708 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterCancelGrain | ( | mxlFlowWriter | writer | ) |
| [in] | writer | A valid flow writer |
Definition at line 469 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterCancelSamples | ( | mxlFlowWriter | writer | ) |
Cancel the mutation of the previously opened range of samples.
| [in] | writer | A valid flow writer |
Definition at line 628 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterCommitEvent | ( | mxlFlowWriter | writer, |
| mxlEventInfo const * | event ) |
Publish one event entry (a complete event or one fragment) and wake waiting readers. Timestamps must be nondecreasing relative to the last committed event in this flow. Equal timestamps are allowed, including for fragments of the same event. An earlier timestamp returns MXL_ERR_INVALID_ARG without publishing or advancing the queue. A failed commit leaves the event open for correction or cancellation. Queue positions advance in commit order, independently of timestamps. The producer must commit all fragments of one logical event consecutively, ending with complete = 1 before starting any other event in this flow. Interleaving is forbidden even when events have different timestamps or DITs. This is a producer requirement; the API does not enforce fragment continuity or detect interleaving. Queue indices identify entries, not logical events.
| [in] | writer | Writer that owns the open event. |
| [in] | event | Metadata to publish with the staged payload; must not be NULL. |
| MXL_STATUS_OK | The entry was published and the write transaction closed. |
| MXL_ERR_INVALID_ARG | No event is open, metadata is invalid, the timestamp decreases, the payload exceeds capacity, or event is NULL. |
| MXL_ERR_INVALID_FLOW_WRITER | The handle is NULL or is not an event writer. |
| MXL_ERR_FLOW_INVALID | Publication would overwrite an already-published or newer sequence tag. |
| MXL_ERR_OUT_OF_RANGE_TOO_LATE | The queue sequence index is exhausted. |
| MXL_ERR_UNKNOWN | An internal exception occurred. |
Definition at line 686 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterCommitGrain | ( | mxlFlowWriter | writer, |
| mxlGrainInfo const * | grain ) |
Inform mxl that a user is done writing the grain that was previously opened. This will in turn signal all readers waiting on the ringbuffer that a new grain is available. The mxlGrainInfo flags field in shared memory will be updated based on grain->flags This will increase the head and potentially the tail IF this grain is the new head.
| MXL_ERR_INVALID_ARG | The grain index is not the open grain, grainSize is larger than the grain payload, or validSlices is larger than totalSlices. Nothing is published. |
Definition at line 487 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterCommitSamples | ( | mxlFlowWriter | writer | ) |
Inform mxl that a user is done writing the sample range that was previously opened.
| [in] | writer | A valid flow writer |
Definition at line 646 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterGetGrainInfo | ( | mxlFlowWriter | writer, |
| uint64_t | index, | ||
| mxlGrainInfo * | mxlGrainInfo ) |
Get grain info for a given index. This is used to inspect the grain info without opening the grain for mutation.
| [in] | writer | A valid flow writer |
| [in] | index | The index of the grain to obtain. |
| [out] | mxlGrainInfo | The requested mxlGrainInfo structure. |
Definition at line 422 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterGetMaxWriteLengthSamples | ( | mxlFlowWriter | writer, |
| size_t * | maxWriteLength ) |
Return the absolute maximum number of samples a write operation may write to a flow.
| [in] | writer | A valid flow writer |
| [out] | maxWriteLength | A valid pointer referring to the location, at which to store the maximum number of samples a write operation may write to the flow writer operates on. |
Definition at line 581 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterOpenEvent | ( | mxlFlowWriter | writer, |
| mxlEventInfo * | event, | ||
| uint8_t ** | payload ) |
Open an event for writing
| [in] | writer | Event flow writer acquired with mxlCreateFlowWriter. |
| [out] | event | Receives initialized metadata; must not be NULL. |
| [out] | payload | Receives the private writable buffer; must not be NULL. The buffer contents are not cleared on open. eventSize starts at zero; obtain capacity from mxlFlowConfigInfo.event.eventPayloadSize and set the actual size before commit. |
| MXL_STATUS_OK | The event is open for editing. |
| MXL_ERR_INVALID_ARG | An output pointer is NULL or an event is already open. |
| MXL_ERR_INVALID_FLOW_WRITER | The handle is NULL or is not an event writer. |
| MXL_ERR_UNKNOWN | An internal exception occurred. |
Definition at line 664 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterOpenGrain | ( | mxlFlowWriter | writer, |
| uint64_t | index, | ||
| mxlGrainInfo * | mxlGrainInfo, | ||
| uint8_t ** | payload ) |
Open a grain for mutation. The flow writer will remember which index is currently opened. Before opening a new grain for mutation, the user must either cancel the mutation using mxlFlowWriterCancelGrain or mxlFlowWriterCommitGrain.
If the ring buffer entry for this index still holds an older grain, its header is reset: validSlices is set to 0 and MXL_GRAIN_FLAG_INVALID is cleared. If the entry already holds this index, the header is returned unchanged. This keeps the progress of an incomplete grain that is opened again, and it keeps the header that a fabrics initiator wrote into a target flow, so that the target application can commit the returned grain info as is.
| [in] | writer | A valid flow writer |
| [in] | index | The index of the grain to obtain |
| [out] | mxlGrainInfo | The requested mxlGrainInfo structure. |
| [out] | payload | The requested grain payload. |
Definition at line 446 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlFlowWriterOpenSamples | ( | mxlFlowWriter | writer, |
| uint64_t | index, | ||
| size_t | count, | ||
| mxlMutableWrappedMultiBufferSlice * | payloadBuffersSlices ) |
Open a specific set of mutable samples across all channels starting at a specific index for mutation.
| [in] | index | The head index of the samples that will be mutated. |
| [in] | count | The number of samples in each channel that will be mutated. |
| [out] | payloadBuffersSlices | A pointer to a mutable wrapped multi buffer slice that represents the requested range across all channel buffers. |
Definition at line 605 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlGetFlowDef | ( | mxlInstance | instance, |
| char const * | flowId, | ||
| char * | buffer, | ||
| size_t * | bufferSize ) |
Get the flow definition used to create the given flow.
| [in] | instance | The mxl instance tied to domain we want to get the flow definition from. If invalid instance is provided, the function will return MXL_ERR_INVALID_ARG and do nothing. |
| [in] | flowId | The id of the flow we want to get the definition for. If nullptr, the function will return MXL_ERR_INVALID_ARG and do nothing. |
| [out] | buffer | A pointer to a buffer that will be filled with the flow definition. If nullptr, or if the buffer does not contain enough space to return the result (based on the bufferSize provided later), the function will return MXL_ERR_INVALID_ARG and update the value pointed to by the bufferSize with the required buffer size. |
| [in,out] | bufferSize | A pointer to a variable with the length of the supplied buffer. If nullptr, the function will return MXL_ERR_INVALID_ARG and do nothing. If function succeeds, the value pointed to by this variable will be updated with the number of bytes written to the buffer (including the null terminator). |
Definition at line 86 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlIsFlowActive | ( | mxlInstance | instance, |
| char const * | flowId, | ||
| bool * | isActive ) |
Verify if a flow has an active writer or not
| [in] | instance | The mxl instance created using mxlCreateInstance |
| [in] | flowId | The ID of the flow to check. |
| [out] | isActive | A pointer to a boolean that will be set to true if the flow has an active writer, false otherwise. |
Definition at line 28 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlReleaseFlowReader | ( | mxlInstance | instance, |
| mxlFlowReader | reader ) |
| MXL_EXPORT mxlStatus mxlReleaseFlowSynchronizationGroup | ( | mxlInstance | instance, |
| mxlFlowSynchronizationGroup | group ) |
Release a synchronization group that is no longer needed and free all underlying resources associated with it.
| [in] | instance | the instance on which the group was previously created. |
| [in] | group | A handle referring to the group that should be released. |
Definition at line 791 of file flow.cpp.
| MXL_EXPORT mxlStatus mxlReleaseFlowWriter | ( | mxlInstance | instance, |
| mxlFlowWriter | writer ) |