obs-StreamFX/source/util/util-library.hpp

27 lines
666 B
C++
Raw Normal View History

// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2020-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
#pragma once
#include "warning-disable.hpp"
#include <filesystem>
#include <memory>
#include <string_view>
#include "warning-enable.hpp"
2021-06-08 02:18:02 +00:00
namespace streamfx::util {
class library {
void* _library;
public:
library(std::filesystem::path file);
~library();
void* load_symbol(std::string_view name);
2021-06-08 02:18:02 +00:00
static std::shared_ptr<::streamfx::util::library> load(std::filesystem::path file);
2021-06-08 02:18:02 +00:00
static std::shared_ptr<::streamfx::util::library> load(std::string_view name);
};
2021-06-08 02:18:02 +00:00
} // namespace streamfx::util