omni/platforminfo/IOsInfo.gen.h

File members: omni/platforminfo/IOsInfo.gen.h

// Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
// --------- Warning: This is a build system generated file. ----------
//

#include <omni/core/OmniAttr.h>
#include <omni/core/Interface.h>
#include <omni/core/ResultError.h>

#include <functional>
#include <utility>
#include <type_traits>

#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL

template <>
class omni::core::Generated<omni::platforminfo::IOsInfo_abi> : public omni::platforminfo::IOsInfo_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::platforminfo::IOsInfo")

    omni::platforminfo::Architecture getArchitecture() noexcept;

    omni::platforminfo::Os getOs() noexcept;

    omni::platforminfo::OsVersion getOsVersion() noexcept;

    omni::platforminfo::CompositorInfo getCompositorInfo() noexcept;

    const char* getPrettyName() noexcept;

    const char* getName() noexcept;

    const char* getDistroName() noexcept;

    const char* getCodeName() noexcept;

    const char* getKernelVersion() noexcept;
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline omni::platforminfo::Architecture omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getArchitecture() noexcept
{
    return getArchitecture_abi();
}

inline omni::platforminfo::Os omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getOs() noexcept
{
    return getOs_abi();
}

inline omni::platforminfo::OsVersion omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getOsVersion() noexcept
{
    return getOsVersion_abi();
}

inline omni::platforminfo::CompositorInfo omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getCompositorInfo() noexcept
{
    return getCompositorInfo_abi();
}

inline const char* omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getPrettyName() noexcept
{
    return getPrettyName_abi();
}

inline const char* omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getName() noexcept
{
    return getName_abi();
}

inline const char* omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getDistroName() noexcept
{
    return getDistroName_abi();
}

inline const char* omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getCodeName() noexcept
{
    return getCodeName_abi();
}

inline const char* omni::core::Generated<omni::platforminfo::IOsInfo_abi>::getKernelVersion() noexcept
{
    return getKernelVersion_abi();
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
static_assert(std::is_standard_layout<omni::platforminfo::OsVersion>::value,
              "omni::platforminfo::OsVersion must be standard layout to be used in ONI ABI");
static_assert(std::is_standard_layout<omni::platforminfo::CompositorInfo>::value,
              "omni::platforminfo::CompositorInfo must be standard layout to be used in ONI ABI");