| 123456789101112131415161718192021222324252627282930 | // Copyright The OpenTelemetry Authors// SPDX-License-Identifier: Apache-2.0#pragma once#include <memory>#include <string>#include "opentelemetry/plugin/factory.h"#include "opentelemetry/version.h"#ifdef _WIN32#  include "opentelemetry/plugin/detail/dynamic_load_windows.h"  // IWYU pragma: export#else#  include "opentelemetry/plugin/detail/dynamic_load_unix.h"  // IWYU pragma: export#endifOPENTELEMETRY_BEGIN_NAMESPACEnamespace plugin{/** * Load an OpenTelemetry implementation as a plugin. * @param plugin the path to the plugin to load * @param error_message on failure this is set to an error message * @return a Factory that can be used to create OpenTelemetry objects or nullptr on failure. */std::unique_ptr<Factory> LoadFactory(const char *plugin, std::string &error_message) noexcept;}  // namespace pluginOPENTELEMETRY_END_NAMESPACE
 |