#include <stdlib.h>
#include <wayland-server.h>
#include "libds/log.h"
-#include "libds-tizen/dpms.h"
#include "libds/output.h"
+#include "libds-tizen/dpms.h"
#include "tizen-dpms-server-protocol.h"
+#include "util.h"
struct ds_tizen_dpms
{
wl_signal_init(&dpms->events.set_dpms);
wl_signal_init(&dpms->events.get_dpms);
- dpms->display_destroy.notify = dpms_handle_display_destroy;
- wl_display_add_destroy_listener(display, &dpms->display_destroy);
+ dpms->destroy.notify = dpms_handle_display_destroy;
+ wl_display_add_destroy_listener(display, &dpms->destroy);
ds_inf("global create : tizen_dpms_manager(%p)", dpms);
{
struct ds_tizen_dpms *dpms;
- dpms = wl_container_of(listener, dpms, display_destroy);
+ dpms = wl_container_of(listener, dpms, destroy);
ds_inf("global destroy : tizen_dpms_manager(%p)", dpms);
wl_signal_emit(&dpms->events.destroy, dpms);
- wl_list_remove(&dpms->display_destroy.link);
+ wl_list_remove(&dpms->destroy.link);
wl_resource_set_user_data(dpms->res, NULL);
wl_global_destroy(dpms->global);
free(dpms);
if (mode > DS_TIZEN_DPMS_MODE_OFF) {
ds_err("set dpms error : not supported mode(%d)", mode);
- tizen_dpms_manager_send_set_state(resource, E_DPMS_MODE_OFF,
- E_DPMS_MANAGER_ERROR_INVALID_PARAMETER);
+ tizen_dpms_manager_send_set_state(resource, DS_TIZEN_DPMS_MODE_OFF,
+ DS_TIZEN_DPMS_ERROR_INVALID_PARAMETER);
return;
}
libds_tizen_files = [
'pixel_format.c',
'tbm_server.c',
+ 'dpms.c',
]
libds_tizen_deps = [
dependency('libdrm', required: true),
dependency('libtbm', required: true),
dependency('wayland-tbm-server', required: true),
+ dependency('tizen-dpms-server', required: true),
]
subdir('allocator')