Definitions shared by other APIs in this module.
More...
Definitions shared by other APIs in this module.
◆ Deinit()
Deinitialize the sACN library.
Closes all connections, deallocates all resources and joins the background thread. No sACN API functions are usable after this function is called.
This function is not thread safe with respect to other sACN API functions. Make sure to join your threads that use the APIs before calling this.
◆ GetRemoteSourceCid()
Converts a remote source handle to the corresponding source CID.
- Parameters
-
[in] | source_handle | The handle of the remote source. |
- Returns
- The UUID of the source CID if there was no error.
-
kEtcPalErrInvalid: Invalid parameter provided.
-
kEtcPalErrNotFound: The source handle does not match a source that was found by a receiver, merge receiver, or source detector.
-
kEtcPalErrSys: An internal library or system call error occurred.
◆ GetRemoteSourceHandle()
Converts a remote source CID to the corresponding handle, or SACN_REMOTE_SOURCE_INVALID if not found.
This is a simple conversion from a remote source CID to it's corresponding remote source handle. A handle will be returned only if it is a source that has been discovered by a receiver, merge receiver, or source detector.
- Parameters
-
[in] | source_cid | The UUID of the remote source CID. |
- Returns
- The remote source handle, or SACN_REMOTE_SOURCE_INVALID if not found.
◆ Init() [1/5]
Initialize the sACN library.
Wraps sacn_init(). Does all initialization required before the sACN API modules can be used.
This is an overload of Init that allows all system network interfaces to be used by the library.
- Parameters
-
logger | Logger instance for the sACN library to use to log messages. |
- Returns
- etcpal::Error::Ok(): Initialization successful.
-
Errors from sacn_init().
◆ Init() [2/5]
Initialize the sACN library.
Wraps sacn_init(). Does all initialization required before the sACN API modules can be used.
- Parameters
-
logger | Logger instance for the sACN library to use to log messages. |
sys_netints | If !empty, this is the list of system interfaces the library will be limited to, and the status codes are filled in. If empty, the library is allowed to use all available system interfaces. |
- Returns
- etcpal::Error::Ok(): Initialization successful.
-
Errors from sacn_init().
◆ Init() [3/5]
Initialize the sACN library.
Wraps sacn_init(). Does all initialization required before the sACN API modules can be used.
- Parameters
-
log_params | Log parameters for the sACN library to use to log messages. If not provided, no logging will be performed. |
sys_netints | If !empty, this is the list of system interfaces the library will be limited to, and the status codes are filled in. If empty, the library is allowed to use all available system interfaces. |
- Returns
- etcpal::Error::Ok(): Initialization successful.
-
Errors from sacn_init().
◆ Init() [4/5]
Initialize the sACN library.
Wraps sacn_init(). Does all initialization required before the sACN API modules can be used.
This is an overload of Init that allows all system network interfaces to be used by the library.
- Parameters
-
log_params | (optional) Log parameters for the sACN library to use to log messages. If not provided, no logging will be performed. |
- Returns
- etcpal::Error::Ok(): Initialization successful.
-
Errors from sacn_init().
◆ Init() [5/5]
Initialize the sACN library.
Wraps sacn_init(). Does all initialization required before the sACN API modules can be used.
This is an overload of Init that does not enable logging.
- Parameters
-
sys_netints | If !empty, this is the list of system interfaces the library will be limited to, and the status codes are filled in. If empty, the library is allowed to use all available system interfaces. |
- Returns
- etcpal::Error::Ok(): Initialization successful.
-
Errors from sacn_init().