When the extern C is applied, below header file occurs build error
while building cplusplus package.
When applying extern C, it causes a type error from glib header.
There is a possibility of type conflict depending on the header file,
and there is no need to inclusion part be located under "extern C".
Change-Id: I7782da2f5d130baf6c86285e2347ccd9d0bb94e7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
#ifndef __SYSCOMMON_PLUGIN_DEVICED_BATTERY_H__
#define __SYSCOMMON_PLUGIN_DEVICED_BATTERY_H__
+#include <stdbool.h>
+#include <system/syscommon-plugin-deviced-battery-interface.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <stdbool.h>
-#include <system/syscommon-plugin-deviced-battery-interface.h>
-
/**
* @brief Get the backend data of deviced-battery module
* @return @c 0 on success, otherwise a negative error value
#ifndef __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_INTERFACE_H__
#define __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_INTERFACE_H__
+#include <stdbool.h>
+#include <glib.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <stdbool.h>
-#include <glib.h>
-
#define DEVICED_DISPLAY_ATTR_INT_MAX_BRIGHTNESS (1ULL << 0)
#define DEVICED_DISPLAY_ATTR_INT_CURRENT_STATE (1ULL << 1)
#define DEVICED_DISPLAY_ATTR_TUPLE2_CURRENT_STATE (1ULL << 2)
#ifndef __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_H__
#define __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_H__
+#include <system/syscommon-plugin-deviced-common-interface.h>
+#include <system/syscommon-plugin-deviced-display-interface.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <system/syscommon-plugin-deviced-common-interface.h>
-#include <system/syscommon-plugin-deviced-display-interface.h>
-
/**
* @brief Get the backend data of deviced-display module
* @return @c 0 on success, otherwise a negative error value