MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
6#ifdef __cplusplus
7# include <cstdint>
8#else
9# include <stdbool.h>
10# include <stdint.h>
11#endif
12
13#include <mxl/platform.h>
14
15#ifdef __cplusplus
16extern "C"
17{
18#endif
19
21 typedef enum mxlStatus
22 {
24
25 // Do not check for MXL_ERR_UNKNOWN. Functions that return MXL_ERR_UNKNOWN in a certain situation, may return
26 // a more descriptive error code in the future and this would not be considered a breaking change.
28
38
39 // A flow is invalid from a reader point of view if its data file has been replaced
40 // (for example, if a writer restarted and recreated the flow)
42
43 /* fabrics.h errors */
54
56 typedef struct mxlVersionType
57 {
58 uint16_t major;
59 uint16_t minor;
60 uint16_t bugfix;
61 uint16_t build;
62 char const* full; /* owned by the library */
64
72
74 typedef struct mxlInstance_t* mxlInstance;
75
84 mxlInstance mxlCreateInstance(char const* in_mxlDomain, char const* in_options);
85
94
110 mxlStatus mxlIsTmpFs(char const* in_path, bool* out_isTmpFs);
111
121
122#ifdef __cplusplus
123}
124#endif
MXL_EXPORT mxlStatus mxlDestroyInstance(mxlInstance in_instance)
Definition mxl.cpp:106
MXL_EXPORT mxlStatus mxlGetVersion(mxlVersionType *out_version)
Definition mxl.cpp:27
mxlStatus
MXL SDK Status codes.
Definition mxl.h:22
@ MXL_ERR_FLOW_INVALID
Definition mxl.h:41
@ MXL_ERR_NOT_READY
Definition mxl.h:49
@ MXL_ERR_TIMEOUT
Definition mxl.h:34
@ MXL_ERR_INVALID_STATE
Definition mxl.h:47
@ MXL_ERR_UNKNOWN
Definition mxl.h:27
@ MXL_ERR_PERMISSION_DENIED
Definition mxl.h:37
@ MXL_ERR_OUT_OF_RANGE_TOO_EARLY
Definition mxl.h:31
@ MXL_ERR_CONFLICT
Definition mxl.h:36
@ MXL_ERR_INTERRUPTED
Definition mxl.h:45
@ MXL_ERR_INTERNAL
Definition mxl.h:48
@ MXL_ERR_FLOW_NOT_FOUND
Definition mxl.h:29
@ MXL_ERR_INVALID_ARG
Definition mxl.h:35
@ MXL_ERR_INVALID_FLOW_WRITER
Definition mxl.h:33
@ MXL_ERR_UNSUPPORTED_OPERATION
Definition mxl.h:52
@ MXL_STATUS_OK
Definition mxl.h:23
@ MXL_ERR_INVALID_FLOW_READER
Definition mxl.h:32
@ MXL_ERR_EXISTS
Definition mxl.h:51
@ MXL_ERR_STRLEN
Definition mxl.h:44
@ MXL_ERR_NO_FABRIC
Definition mxl.h:46
@ MXL_ERR_OUT_OF_RANGE_TOO_LATE
Definition mxl.h:30
@ MXL_ERR_NOT_FOUND
Definition mxl.h:50
MXL_EXPORT mxlInstance mxlCreateInstance(char const *in_mxlDomain, char const *in_options)
Definition mxl.cpp:45
MXL_EXPORT mxlStatus mxlIsTmpFs(char const *in_path, bool *out_isTmpFs)
Definition mxl.cpp:73
MXL_EXPORT mxlStatus mxlGarbageCollectFlows(mxlInstance in_instance)
Definition mxl.cpp:121
struct mxlInstance_t * mxlInstance
Definition mxl.h:74
#define MXL_EXPORT
Definition platform.h:9
MXL SDK Semantic versionning structure.
Definition mxl.h:57
uint16_t minor
Definition mxl.h:59
char const * full
Definition mxl.h:62
uint16_t build
Definition mxl.h:61
uint16_t bugfix
Definition mxl.h:60
uint16_t major
Definition mxl.h:58