]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/dll/example/tutorial4/static_plugin.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / dll / example / tutorial4 / static_plugin.hpp
1 // Copyright 2014 Renato Tegon Forti, Antony Polukhin.
2 // Copyright 2015 Antony Polukhin.
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt
6 // or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8 //[plugcpp_my_plugin_static
9 #include <boost/dll/alias.hpp> // for BOOST_DLL_ALIAS
10 #include <boost/shared_ptr.hpp>
11 #include "../tutorial_common/my_plugin_api.hpp"
12
13 namespace my_namespace {
14 boost::shared_ptr<my_plugin_api> create_plugin(); // Forward declaration
15 } // namespace my_namespace
16
17 BOOST_DLL_ALIAS(
18 my_namespace::create_plugin, // <-- this function is exported with...
19 create_plugin // <-- ...this alias name
20 )
21 //]
22