mirror of
https://github.com/zoriya/react-native-video.git
synced 2025-12-05 23:06:14 +00:00
52 lines
2.1 KiB
C++
Generated
52 lines
2.1 KiB
C++
Generated
///
|
|
/// ReactNativeVideoDrm-Swift-Cxx-Bridge.hpp
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
///
|
|
|
|
#pragma once
|
|
|
|
// Forward declarations of C++ defined types
|
|
// Forward declaration of `HybridPluginManagerSpec` to properly resolve imports.
|
|
namespace margelo::nitro::videodrm { class HybridPluginManagerSpec; }
|
|
|
|
// Forward declarations of Swift defined types
|
|
// Forward declaration of `HybridPluginManagerSpec_cxx` to properly resolve imports.
|
|
namespace ReactNativeVideoDrm { class HybridPluginManagerSpec_cxx; }
|
|
|
|
// Include C++ defined types
|
|
#include "HybridPluginManagerSpec.hpp"
|
|
#include <NitroModules/Result.hpp>
|
|
#include <exception>
|
|
#include <memory>
|
|
|
|
/**
|
|
* Contains specialized versions of C++ templated types so they can be accessed from Swift,
|
|
* as well as helper functions to interact with those C++ types from Swift.
|
|
*/
|
|
namespace margelo::nitro::videodrm::bridge::swift {
|
|
|
|
// pragma MARK: std::shared_ptr<HybridPluginManagerSpec>
|
|
/**
|
|
* Specialized version of `std::shared_ptr<HybridPluginManagerSpec>`.
|
|
*/
|
|
using std__shared_ptr_HybridPluginManagerSpec_ = std::shared_ptr<HybridPluginManagerSpec>;
|
|
std::shared_ptr<HybridPluginManagerSpec> create_std__shared_ptr_HybridPluginManagerSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
void* NON_NULL get_std__shared_ptr_HybridPluginManagerSpec_(std__shared_ptr_HybridPluginManagerSpec_ cppType);
|
|
|
|
// pragma MARK: std::weak_ptr<HybridPluginManagerSpec>
|
|
using std__weak_ptr_HybridPluginManagerSpec_ = std::weak_ptr<HybridPluginManagerSpec>;
|
|
inline std__weak_ptr_HybridPluginManagerSpec_ weakify_std__shared_ptr_HybridPluginManagerSpec_(const std::shared_ptr<HybridPluginManagerSpec>& strong) noexcept { return strong; }
|
|
|
|
// pragma MARK: Result<void>
|
|
using Result_void_ = Result<void>;
|
|
inline Result_void_ create_Result_void_() noexcept {
|
|
return Result<void>::withValue();
|
|
}
|
|
inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
|
|
return Result<void>::withError(error);
|
|
}
|
|
|
|
} // namespace margelo::nitro::videodrm::bridge::swift
|