1// Copyright Antony Polukhin, 2016-2024.
2//
3// Distributed under the Boost Software License, Version 1.0.
4// (See accompanying file LICENSE_1_0.txt
5// or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7#ifndef BOOST_DLL_MY_PLUGIN_API_HPP
8#define BOOST_DLL_MY_PLUGIN_API_HPP
9
10//[plugapi
11#include <boost/config.hpp>
12#include <string>
13
14class BOOST_SYMBOL_VISIBLE my_plugin_api {
15public:
16 virtual std::string name() const = 0;
17 virtual float calculate(float x, float y) = 0;
18
19 virtual ~my_plugin_api() {}
20};
21//]
22
23#endif // BOOST_DLL_MY_PLUGIN_API_HPP
24
25

source code of boost/libs/dll/example/tutorial_common/my_plugin_api.hpp