summaryrefslogtreecommitdiff
path: root/plugins/connman/connman_api.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/connman/connman_api.hpp')
-rw-r--r--plugins/connman/connman_api.hpp66
1 files changed, 66 insertions, 0 deletions
diff --git a/plugins/connman/connman_api.hpp b/plugins/connman/connman_api.hpp
new file mode 100644
index 0000000..232fb56
--- /dev/null
+++ b/plugins/connman/connman_api.hpp
@@ -0,0 +1,66 @@
+/**
+ * @file connman_api.hpp
+ *
+ * @brief @c Connman-based settings plugin export macros.
+ *
+ * The IVI connman settings plugin uses these macros to
+ * export the settings plugin API from the plugin as needed.
+ *
+ * @author Ossama Othman @<ossama.othman@@intel.com@>
+ *
+ * @copyright @par
+ * Copyright 2013 Intel Corporation All Rights Reserved.
+ * @par
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License.
+ * @par
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ * @par
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ */
+
+
+#ifndef IVI_SETTINGS_CONNMAN_API_HPP
+#define IVI_SETTINGS_CONNMAN_API_HPP
+
+# if defined _WIN32 || defined __CYGWIN__
+# ifdef IVI_SETTINGS_CONNMAN_BUILDING_DLL
+# ifdef __GNUC__
+# define IVI_SETTINGS_CONNMAN_API __attribute__ ((dllexport))
+# else
+# define IVI_SETTINGS_CONNMAN_API __declspec(dllexport)
+# endif
+# else
+# ifdef __GNUC__
+# define IVI_SETTINGS_CONNMAN_API __attribute__ ((dllimport))
+# else
+# define IVI_SETTINGS_CONNMAN_API __declspec(dllimport)
+# endif
+# endif
+# define IVI_SETTINGS_CONNMAN_LOCAL
+# else
+# if __GNUC__ >= 4
+# define IVI_SETTINGS_CONNMAN_API __attribute__ ((visibility ("default")))
+# define IVI_SETTINGS_CONNMAN_LOCAL __attribute__ ((visibility ("hidden")))
+# else
+# define IVI_SETTINGS_CONNMAN_API
+# define IVI_SETTINGS_CONNMAN_LOCAL
+# endif
+# endif
+
+#endif /* IVI_SETTINGS_CONNMAN_API_HPP */
+
+
+// Local Variables:
+// mode:c++
+// c-basic-offset:2
+// indent-tabs-mode: nil
+// End: