NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/includes/opentelemetry/plugin/dynamic_load.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include <memory>
7 #include <string>
8 
9 #include "opentelemetry/plugin/factory.h"
10 #include "opentelemetry/version.h"
11 
12 #ifdef _WIN32
13 # include "opentelemetry/plugin/detail/dynamic_load_windows.h" // IWYU pragma: export
14 #else
15 # include "opentelemetry/plugin/detail/dynamic_load_unix.h" // IWYU pragma: export
16 #endif
17 
19 namespace plugin
20 {
21 
28 std::unique_ptr<Factory> LoadFactory(const char *plugin, std::string &error_message) noexcept;
29 } // namespace plugin
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
plugin::LoadFactory
std::unique_ptr< Factory > LoadFactory(const char *plugin, std::string &error_message) noexcept
Load an OpenTelemetry implementation as a plugin.
Definition: includes/opentelemetry/plugin/detail/dynamic_load_unix.h:31
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
plugin
Definition: includes/opentelemetry/plugin/dynamic_load.h:19