Files
SOMEIP/install/vsomeip-3.7.3/include/vsomeip/internal/plugin_manager.hpp
2026-06-09 20:16:47 +08:00

28 lines
1016 B
C++

// Copyright (C) 2014-2026 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#pragma once
#include <memory>
#include <string>
#include <vsomeip/export.hpp>
#include <vsomeip/plugin.hpp>
namespace vsomeip_v3 {
class plugin_manager {
public:
VSOMEIP_EXPORT virtual ~plugin_manager(){};
VSOMEIP_EXPORT static std::shared_ptr<plugin_manager> get();
VSOMEIP_EXPORT virtual std::shared_ptr<plugin> get_plugin(plugin_type_e _type, const std::string& _name) = 0;
VSOMEIP_EXPORT virtual void* load_library(const std::string& _path) = 0;
VSOMEIP_EXPORT virtual void* load_symbol(void* _handle, const std::string& _symbol) = 0;
VSOMEIP_EXPORT virtual void unload_library(void* _handle) = 0;
VSOMEIP_EXPORT virtual bool unload_plugin(plugin_type_e _type) = 0;
};
} // namespace vsomeip_v3