IExtensionHooks.gen.h#

Fully qualified name: omni/ext/IExtensionHooks.gen.h

File members: omni/ext/IExtensionHooks.gen.h

// SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
//
// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
// property and proprietary rights in and to this material, related
// documentation and any modifications thereto. Any use, reproduction,
// disclosure or distribution of this material and related documentation
// without an express license agreement from NVIDIA CORPORATION or
// its affiliates is strictly prohibited.

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

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

#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL

template <>
class omni::core::Generated<omni::ext::IExtensionHooks_abi> : public omni::ext::IExtensionHooks_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::ext::IExtensionHooks")

    void onStartup(omni::core::ObjectParam<omni::ext::IExtensionData> ext) noexcept;

    void onShutdown(omni::core::ObjectParam<omni::ext::IExtensionData> ext) noexcept;
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline void omni::core::Generated<omni::ext::IExtensionHooks_abi>::onStartup(
    omni::core::ObjectParam<omni::ext::IExtensionData> ext) noexcept
{
    onStartup_abi(ext.get());
}

inline void omni::core::Generated<omni::ext::IExtensionHooks_abi>::onShutdown(
    omni::core::ObjectParam<omni::ext::IExtensionData> ext) noexcept
{
    onShutdown_abi(ext.get());
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL