Files
xahaud/cmake/QuickJSProviderProfile.h.in
2026-08-13 14:50:05 +07:00

57 lines
2.0 KiB
C

#ifndef XRPLD_APP_HOOK_DETAIL_QUICKJSPROVIDERPROFILE_H_INCLUDED
#define XRPLD_APP_HOOK_DETAIL_QUICKJSPROVIDERPROFILE_H_INCLUDED
#include <array>
#include <cstddef>
#include <cstdint>
#include <string_view>
namespace hook::artifact::generated {
struct ProviderImportSignature
{
std::string_view module;
std::string_view name;
std::string_view parameters;
std::string_view results;
};
struct NativeImportSignature
{
std::string_view name;
std::string_view result;
std::string_view parameters;
std::string_view amendment;
};
inline constexpr std::array<std::uint8_t, 32> providerSHA256 = {
@XAHAU_QUICKJS_PROVIDER_SHA256_CPP@};
inline constexpr std::array<std::uint8_t, 32> bytecodeABI = {
@XAHAU_QUICKJS_BYTECODE_ABI_ID_CPP@};
inline constexpr std::array<std::uint8_t, 32> runtimeProfile = {
@XAHAU_QUICKJS_RUNTIME_PROFILE_ID_CPP@};
inline constexpr std::size_t providerSize = @XAHAU_QUICKJS_PROVIDER_SIZE@;
#include "QuickJSProviderPolicy.inc"
inline constexpr std::uint16_t hookApiVersion =
@XAHAU_QUICKJS_HOOK_API_VERSION@;
inline constexpr std::uint64_t initializationFuel =
@XAHAU_QUICKJS_INITIALIZATION_FUEL@ULL;
inline constexpr std::uint64_t invocationFuel =
@XAHAU_QUICKJS_INVOCATION_FUEL@ULL;
inline constexpr std::string_view hostWorkMeter =
"@XAHAU_QUICKJS_HOST_WORK_METER@";
inline constexpr std::uint64_t hostWorkBudget =
@XAHAU_QUICKJS_HOST_WORK_BUDGET@ULL;
inline constexpr std::uint64_t hostWorkBasePerCall =
@XAHAU_QUICKJS_HOST_WORK_BASE_PER_CALL@ULL;
inline constexpr std::uint64_t hostWorkPerAddressedByte =
@XAHAU_QUICKJS_HOST_WORK_PER_ADDRESSED_BYTE@ULL;
inline constexpr std::string_view hostAdapterPolicy =
"@XAHAU_QUICKJS_HOST_ADAPTER_POLICY@";
inline constexpr std::uint32_t heapBytes = @XAHAU_QUICKJS_HEAP_BYTES@U;
inline constexpr std::uint32_t stackBytes = @XAHAU_QUICKJS_STACK_BYTES@U;
} // namespace hook::artifact::generated
#endif // XRPLD_APP_HOOK_DETAIL_QUICKJSPROVIDERPROFILE_H_INCLUDED