MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
Provider.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Contributors to the Media eXchange Layer project.
2//
3// SPDX-License-Identifier: Apache-2.0
4
5#pragma once
6
7#include <optional>
8#include <string>
9#include "mxl/fabrics.h"
10
12{
13
16 enum class Provider
17 {
23 };
24
27 mxlFabricsProvider providerToAPI(Provider provider) noexcept;
28
31 std::optional<Provider> providerFromAPI(mxlFabricsProvider api) noexcept;
32
37 std::optional<Provider> providerFromString(std::string const& s) noexcept;
38}
enum mxlFabricsProvider_t mxlFabricsProvider
std::optional< Provider > providerFromString(std::string const &s) noexcept
Parse a provider name string, and return the enum value.
Definition Provider.cpp:49
std::optional< Provider > providerFromAPI(mxlFabricsProvider api) noexcept
Convert between external and internal versions of this type.
Definition Provider.cpp:35
Provider
Internal representation of supported libfabric providers.
Definition Provider.hpp:17
mxlFabricsProvider providerToAPI(Provider provider) noexcept
Convert between external and internal versions of this type.
Definition Provider.cpp:21