Fix enum resource_error_e to be exported 81/321581/2 accepted/tizen/unified/20250326.130859 accepted/tizen/unified/x/20250326.212909
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 25 Mar 2025 09:01:14 +0000 (18:01 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 25 Mar 2025 09:12:37 +0000 (18:12 +0900)
commit86ab6acf2720e37e7b27384b11fed3f388935575
treee2acf64d27796b6ee1cb605f32a84be7a87e8254
parent323b75ea24c2b737f74d54a73e66905ff63d1cb7
Fix enum resource_error_e to be exported

The cpu-boosting.h has described its return value as a type of enum
resource_error_e, but the header hasn't included the actual definition.
Rather, the definition was at the common.h that was a header not being
exported. This caused build error where the only <cpu-boosting.h> was
included as a header for cpu boosting. To fix it, move the definition to
cpu-boosting-type.h.

/home/abuild/rpmbuild/BUILD/dbus-tools-0.1/stress-test/src/test-main.c:127:28:
   error: 'RESOURCE_ERROR_NONE' undeclared (first use in this function);
   did you mean 'G_IO_ERROR_NONE'?
  127 |                 if (ret != RESOURCE_ERROR_NONE) {
      |                            ^~~~~~~~~~~~~~~~~~~
      |                            G_IO_ERROR_NONE

Change-Id: Ibcc59281a28e03cf1a16c8f3a4f466ebb16f465a
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/common.h
include/cpu-boosting-type.h