/* * Copyright (c) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #if defined(CORE_PLUGIN) && (CORE_PLUGIN == 1) #include #else // Include the declarations directly from engine. // NOTE: macro defined by cmake as CORE_STATIC_PLUGIN_HEADER="${CORE_ROOT_DIRECTORY}/src/static_plugin_decl.h" // this is so that the core include directories are not leaked here, but we want this one header in this case. #include CORE_STATIC_PLUGIN_HEADER #endif CORE_BEGIN_NAMESPACE() class IPluginRegister; CORE_END_NAMESPACE() RENDER_BEGIN_NAMESPACE() const char* GetVersionInfo(); CORE_NS::PluginToken RegisterInterfaces(CORE_NS::IPluginRegister&); void UnregisterInterfaces(CORE_NS::PluginToken); RENDER_END_NAMESPACE() namespace { extern "C" { PLUGIN_DATA(AGPRender) { { CORE_NS::IPlugin::UID }, // name of plugin. "AGP Render", // Version information of the plugin. { RENDER_NS::UID_RENDER_PLUGIN, RENDER_NS::GetVersionInfo }, RENDER_NS::RegisterInterfaces, RENDER_NS::UnregisterInterfaces, {}, }; DEFINE_STATIC_PLUGIN(AGPRender); } } // namespace