From: Yunhee Seo Date: Wed, 5 Jun 2024 02:26:26 +0000 (+0900) Subject: plugin-api: Relocate header inclusion part X-Git-Tag: accepted/tizen/unified/20240618.060027~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f11ae0030c65ea0423fc430896c0c0a62283939;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git plugin-api: Relocate header inclusion part 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 --- diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-battery.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-battery.h index 3565804..28a9a44 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-battery.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-battery.h @@ -25,13 +25,13 @@ #ifndef __SYSCOMMON_PLUGIN_DEVICED_BATTERY_H__ #define __SYSCOMMON_PLUGIN_DEVICED_BATTERY_H__ +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - /** * @brief Get the backend data of deviced-battery module * @return @c 0 on success, otherwise a negative error value diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h index 25c7581..caf5414 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display-interface.h @@ -25,13 +25,13 @@ #ifndef __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_INTERFACE_H__ #define __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_INTERFACE_H__ +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - #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) diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display.h index b49a5bd..a999c95 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-display.h @@ -25,13 +25,13 @@ #ifndef __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_H__ #define __SYSCOMMON_PLUGIN_DEVICED_DISPLAY_H__ +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - /** * @brief Get the backend data of deviced-display module * @return @c 0 on success, otherwise a negative error value