Change-Id: Ifc855d9197d13001b2ca4b25f2e530c236699894
Signed-off-by: hyunho <hhstark.kang@samsung.com>
if (status == component_based::FrameComponent::DisplayStatus::Unknown) {
LOGE("Invalid context");
return COMPONENT_ERROR_INVALID_CONTEXT;
+ } else if (status == component_based::FrameComponent::DisplayStatus::On) {
+ *display_status = COMPONENT_DISPLAY_STATUS_ON;
+ } else if (status == component_based::FrameComponent::DisplayStatus::Off) {
+ *display_status = COMPONENT_DISPLAY_STATUS_OFF;
}
- *display_status = static_cast<component_display_status_e>(status);
-
return COMPONENT_ERROR_NONE;
}