IOsInfo2.h#
Fully qualified name: omni/platforminfo/IOsInfo2.h
File members: omni/platforminfo/IOsInfo2.h
// Copyright (c) 2023-2024, 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.
//
#pragma once
#include "IOsInfo.h"
namespace omni
{
namespace platforminfo
{
class IOsInfo2;
using MachineIdFlags OMNI_ATTR("flag, prefix=fMachineIdFlag") = uint32_t;
constexpr MachineIdFlags fMachineIdFlagDefault = 0;
constexpr MachineIdFlags fMachineIdFlagMakeUnique = 0x00000001;
constexpr MachineIdFlags fMachineIdFlagSessionUnique = 0x00000002;
using MachineIdVersion OMNI_ATTR("constant, prefix=kMachineId") = uint32_t;
constexpr MachineIdVersion kMachineIdBaseVersion = 1;
constexpr MachineIdVersion kMachineIdCurrent = kMachineIdBaseVersion;
class IOsInfo2_abi : public omni::core::Inherits<omni::platforminfo::IOsInfo, OMNI_TYPE_ID("omni.platforminfo.IOsInfo2")>
{
protected:
virtual bool isCompatibilityModeEnabled_abi() noexcept = 0;
virtual uint64_t getMachineIdEx_abi(OMNI_ATTR("c_str, in") const char* extraData,
MachineIdFlags flags,
MachineIdVersion version) noexcept = 0;
};
} // namespace platforminfo
} // namespace omni
#define OMNI_BIND_INCLUDE_INTERFACE_DECL
#include "IOsInfo2.gen.h"
class omni::platforminfo::IOsInfo2 : public omni::core::Generated<omni::platforminfo::IOsInfo2_abi>
{
public:
uint64_t getMachineId(const char* extraData = nullptr, MachineIdFlags flags = fMachineIdFlagDefault) noexcept
{
return getMachineIdEx_abi(extraData, flags, kMachineIdCurrent);
}
};
#define OMNI_BIND_INCLUDE_INTERFACE_IMPL
#include "IOsInfo2.gen.h"