|
MXL : Media eXchange Layer
MXL
|


Go to the source code of this file.
Classes | |
| struct | mxlVersionType |
| MXL SDK Semantic versionning structure. More... | |
Typedefs | |
| typedef struct mxlInstance_t * | mxlInstance |
| typedef enum mxlStatus | mxlStatus |
| MXL SDK Status codes. | |
| typedef struct mxlVersionType | mxlVersionType |
| MXL SDK Semantic versionning structure. | |
Enumerations | |
| enum | mxlStatus { MXL_STATUS_OK , MXL_ERR_UNKNOWN , MXL_ERR_FLOW_NOT_FOUND , MXL_ERR_OUT_OF_RANGE_TOO_LATE , MXL_ERR_OUT_OF_RANGE_TOO_EARLY , MXL_ERR_INVALID_FLOW_READER , MXL_ERR_INVALID_FLOW_WRITER , MXL_ERR_TIMEOUT , MXL_ERR_INVALID_ARG , MXL_ERR_CONFLICT , MXL_ERR_PERMISSION_DENIED , MXL_ERR_FLOW_INVALID , MXL_ERR_STRLEN = 1024 , MXL_ERR_INTERRUPTED , MXL_ERR_NO_FABRIC , MXL_ERR_INVALID_STATE , MXL_ERR_INTERNAL , MXL_ERR_NOT_READY , MXL_ERR_NOT_FOUND , MXL_ERR_EXISTS , MXL_ERR_UNSUPPORTED_OPERATION } |
| MXL SDK Status codes. More... | |
Functions | |
| MXL_EXPORT mxlInstance | mxlCreateInstance (char const *in_mxlDomain, char const *in_options) |
| MXL_EXPORT mxlStatus | mxlDestroyInstance (mxlInstance in_instance) |
| MXL_EXPORT mxlStatus | mxlGarbageCollectFlows (mxlInstance in_instance) |
| MXL_EXPORT mxlStatus | mxlGetVersion (mxlVersionType *out_version) |
| MXL_EXPORT mxlStatus | mxlIsTmpFs (char const *in_path, bool *out_isTmpFs) |
| typedef struct mxlInstance_t* mxlInstance |
| typedef struct mxlVersionType mxlVersionType |
MXL SDK Semantic versionning structure.
| enum mxlStatus |
MXL SDK Status codes.
Definition at line 21 of file mxl.h.
| MXL_EXPORT mxlInstance mxlCreateInstance | ( | char const * | in_mxlDomain, |
| char const * | in_options ) |
Create a new MXL instance for a specific domain.
| in_mxlDomain | The domain is the directory where the MXL ringbuffers files are stored. It should live on a tmpfs filesystem. |
| in_options | Optional JSON string containing additional SDK options. Currently not used. |
Definition at line 45 of file mxl.cpp.
| MXL_EXPORT mxlStatus mxlDestroyInstance | ( | mxlInstance | in_instance | ) |
Destroy the MXL instance. This will also release all flows readers/writers associated with the instance.
| in_instance | The MXL instance to destroy. |
Definition at line 106 of file mxl.cpp.
| MXL_EXPORT mxlStatus mxlGarbageCollectFlows | ( | mxlInstance | in_instance | ) |
Iterates over all flows in the MXL domain and deletes any flows that are no longer active (in other words, no readers or writers are using them. This typically happens when an application creating flows writers crashes or exits without cleaning up. A flow is considered active if a shared advisory lock is held on the data file of the flow.
Definition at line 121 of file mxl.cpp.
| MXL_EXPORT mxlStatus mxlGetVersion | ( | mxlVersionType * | out_version | ) |
Accessor for the version of the MXL SDK.
| out_version | Pointer to a mxlVersionType structure to be filled with the version information. |
| MXL_EXPORT mxlStatus mxlIsTmpFs | ( | char const * | in_path, |
| bool * | out_isTmpFs ) |
Checks whether the given path resides on a RAM-backed filesystem.
On Linux, this detects tmpfs and ramfs using statfs(). On macOS, this checks the filesystem type name reported by statfs(). On other platforms, this always sets out_isTmpFs to false.
| in_path | The filesystem path to check. |
| out_isTmpFs | Pointer to a bool that will be set to true if the path is on a RAM-backed filesystem, false otherwise. |
Definition at line 73 of file mxl.cpp.