Add display feature for headless profile
[platform/core/api/device.git] / src / callback.c
index d2adebb..b3cf676 100644 (file)
@@ -27,6 +27,7 @@
 #include "callback.h"
 #include "battery.h"
 #include "display.h"
+#include "display-internal.h"
 #include "common.h"
 
 #define SIGNAL_FLASH_STATE  "ChangeFlashState"
@@ -292,7 +293,7 @@ int device_add_callback(device_callback_e type, device_changed_cb cb, void *data
        GList *elem, *elem_next;
        int ret, n;
 
-       if (!is_display_supported() && type == DEVICE_CALLBACK_DISPLAY_STATE)
+       if (!is_feature_display_supported() && type == DEVICE_CALLBACK_DISPLAY_STATE)
                return DEVICE_ERROR_NOT_SUPPORTED;
 
        if (type < 0 || type >= DEVICE_CALLBACK_MAX)
@@ -334,7 +335,7 @@ int device_remove_callback(device_callback_e type, device_changed_cb cb)
        GList *elem, *elem_next;
        int ret, n;
 
-       if (!is_display_supported() && type == DEVICE_CALLBACK_DISPLAY_STATE)
+       if (!is_feature_display_supported() && type == DEVICE_CALLBACK_DISPLAY_STATE)
                return DEVICE_ERROR_NOT_SUPPORTED;
 
        if (type < 0 || type >= DEVICE_CALLBACK_MAX)