20#ifndef SACN_CPP_COMMON_H_
21#define SACN_CPP_COMMON_H_
92 return sacn_init(log_params, &netint_config);
112 return sacn_init(
nullptr, &netint_config);
201 return cid_to_return;
const EtcPalLogParams & log_params() const noexcept
constexpr const EtcPalUuid & get() const noexcept
Common definitions for sACN.
uint16_t sacn_remote_source_t
Definition common.h:58
#define SACN_REMOTE_SOURCE_INVALID
Definition common.h:60
etcpal_error_t sacn_init(const EtcPalLogParams *log_params, const SacnNetintConfig *sys_netint_config)
Initialize the sACN library.
Definition common.c:68
sacn_remote_source_t sacn_get_remote_source_handle(const EtcPalUuid *source_cid)
Converts a remote source CID to the corresponding handle, or SACN_REMOTE_SOURCE_INVALID if not found.
Definition common.c:289
void sacn_deinit(void)
Deinitialize the sACN library.
Definition common.c:234
etcpal_error_t sacn_get_remote_source_cid(sacn_remote_source_t source_handle, EtcPalUuid *source_cid)
Converts a remote source handle to the corresponding source CID.
Definition common.c:314
etcpal::Expected< etcpal::Uuid > GetRemoteSourceCid(RemoteSourceHandle source_handle)
Converts a remote source handle to the corresponding source CID.
Definition common.h:194
RemoteSourceHandle GetRemoteSourceHandle(const etcpal::Uuid &source_cid)
Converts a remote source CID to the corresponding handle, or SACN_REMOTE_SOURCE_INVALID if not found.
Definition common.h:177
void Deinit()
Deinitialize the sACN library.
Definition common.h:162
etcpal::Error Init(const EtcPalLogParams *log_params=nullptr)
Initialize the sACN library.
Definition common.h:70
A namespace which contains all C++ language definitions in the sACN library.
Definition common.h:50
constexpr RemoteSourceHandle kInvalidRemoteSourceHandle
Definition common.h:54
sacn_remote_source_t RemoteSourceHandle
Definition common.h:52