A header can be used by other packages and their environment variable
for locating header files cannot locate hal/device/hal-board.h, which
makes No such file or directory error. To address this, hide the
include into source code and only exposes declaration through header.
Change-Id: I3f5c310dcf8f5fa1306fe2551d15d86caf68ba4d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
#include <glib.h>
#include <gio/gio.h>
-#include <hal/device/hal-board.h>
-
#include "device-error.h"
/**
/**
* Return 0 if cloning partition is in progress.
*/
-static inline int device_power_check_reboot_allowed(void)
-{
- int retval, cloned;
-
- retval = hal_device_board_get_partition_ab_cloned(&cloned);
-
- return (retval != 0 || cloned != 0);
-}
+int device_power_check_reboot_allowed(void);
#ifdef __cplusplus
}
#include <string.h>
#include <gio/gio.h>
#include <libsyscommon/libgdbus.h>
+#include <hal/device/hal-board.h>
#include "power-internal.h"
#include "common.h"
return DEVICE_ERROR_NONE;
}
+
+int device_power_check_reboot_allowed(void)
+{
+ int retval, cloned;
+
+ retval = hal_device_board_get_partition_ab_cloned(&cloned);
+
+ return (retval != 0 || cloned != 0);
+}