39 lines
788 B
C++
39 lines
788 B
C++
// Copyright (C) 2018-2023 Intel Corporation
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
#ifdef OPENVINO_STATIC_LIBRARY
|
|
|
|
#include "cpp_interfaces/interface/ie_iplugin_internal.hpp"
|
|
|
|
@OV_PLUGINS_DECLARATIONS@
|
|
|
|
struct Value {
|
|
InferenceEngine::CreatePluginEngineFunc * m_create_plugin_func;
|
|
InferenceEngine::CreateExtensionFunc * m_create_extension_func;
|
|
std::map<std::string, std::string> m_default_config;
|
|
};
|
|
|
|
#else
|
|
|
|
struct Value {
|
|
std::string m_plugin_path;
|
|
std::map<std::string, std::string> m_default_config;
|
|
};
|
|
|
|
#endif
|
|
|
|
using Key = std::string;
|
|
using PluginsStaticRegistry = std::map<Key, Value>;
|
|
|
|
|
|
inline const std::map<Key, Value> getCompiledPluginsRegistry() {
|
|
@OV_PLUGINS_MAP_DEFINITION@
|
|
return plugins_hpp;
|
|
}
|