Program Listing for OmniUsdResolver.h

↰ Return to documentation for OmniUsdResolver.h

// Copyright (c) 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.
//
// clang-format off
#pragma once

#include <stdint.h>

#include "Defines.h"

OMNIUSDRESOLVER_EXPORT(void) omniUsdResolverSetCheckpointMessage(const char* message) OMNIUSDRESOLVER_NOEXCEPT;

enum OmniUsdResolverEvent
{
    eOmniUsdResolverEvent_Resolving,
    eOmniUsdResolverEvent_Reading,
    eOmniUsdResolverEvent_Writing,

    Count_eOmniUsdResolverEvent
};

enum OmniUsdResolverEventState
{
    eOmniUsdResolverEventState_Started,

    eOmniUsdResolverEventState_Success,

    eOmniUsdResolverEventState_Failure,

    Count_eOmniUsdResolverEventState
};

typedef void(OMNIUSDRESOLVER_ABI* OmniUsdResolverEventCallback)
    (void * userData, const char* identifier, OmniUsdResolverEvent eventType, OmniUsdResolverEventState eventState)
    OMNIUSDRESOLVER_CALLBACK_NOEXCEPT;

OMNIUSDRESOLVER_EXPORT(uint32_t)
    omniUsdResolverRegisterEventCallback(void * userData, OmniUsdResolverEventCallback callback)
    OMNIUSDRESOLVER_NOEXCEPT;

OMNIUSDRESOLVER_EXPORT(void)
    omniUsdResolverUnregisterCallback(uint32_t handle)
    OMNIUSDRESOLVER_NOEXCEPT;