2 * @file test_setting_api.hpp
4 * @brief @c Test_Setting-based settings plugin export macros.
6 * The IVI test_setting settings plugin uses these macros to
7 * export the settings plugin API from the plugin as needed.
9 * @author Ossama Othman @<ossama.othman@@intel.com@>
12 * Copyright 2013 Intel Corporation All Rights Reserved.
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation;
17 * version 2.1 of the License.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
27 * Boston, MA 02110-1301 USA
31 #ifndef TEST_SETTING_API_HPP
32 #define TEST_SETTING_API_HPP
34 # if defined _WIN32 || defined __CYGWIN__
35 # ifdef TEST_SETTING_BUILDING_DLL
37 # define TEST_SETTING_API __attribute__ ((dllexport))
39 # define TEST_SETTING_API __declspec(dllexport)
43 # define TEST_SETTING_API __attribute__ ((dllimport))
45 # define TEST_SETTING_API __declspec(dllimport)
48 # define TEST_SETTING_LOCAL
51 # define TEST_SETTING_API __attribute__ ((visibility ("default")))
52 # define TEST_SETTING_LOCAL __attribute__ ((visibility ("hidden")))
54 # define TEST_SETTING_API
55 # define TEST_SETTING_LOCAL
59 #endif /* TEST_SETTING_API_HPP */
65 // indent-tabs-mode: nil