2 * @file connman_api.hpp
4 * @brief @c Connman-based settings plugin export macros.
6 * The IVI connman 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 IVI_SETTINGS_CONNMAN_API_HPP
32 #define IVI_SETTINGS_CONNMAN_API_HPP
34 # if defined _WIN32 || defined __CYGWIN__
35 # ifdef IVI_SETTINGS_CONNMAN_BUILDING_DLL
37 # define IVI_SETTINGS_CONNMAN_API __attribute__ ((dllexport))
39 # define IVI_SETTINGS_CONNMAN_API __declspec(dllexport)
43 # define IVI_SETTINGS_CONNMAN_API __attribute__ ((dllimport))
45 # define IVI_SETTINGS_CONNMAN_API __declspec(dllimport)
48 # define IVI_SETTINGS_CONNMAN_LOCAL
51 # define IVI_SETTINGS_CONNMAN_API __attribute__ ((visibility ("default")))
52 # define IVI_SETTINGS_CONNMAN_LOCAL __attribute__ ((visibility ("hidden")))
54 # define IVI_SETTINGS_CONNMAN_API
55 # define IVI_SETTINGS_CONNMAN_LOCAL
59 #endif /* IVI_SETTINGS_CONNMAN_API_HPP */
65 // indent-tabs-mode: nil