e_video_debug_punch_set(!flag);
}
-EINTERN int
+EINTERN Eina_Bool
e_comp_wl_video_init(void)
{
struct wl_global *global;
- if (!e_comp_wl) return 0;
- if (!e_comp_wl->wl.disp) return 0;
- if (e_comp->wl_comp_data->video.global) return 1;
+ if (!e_comp_wl) return EINA_FALSE;
+ if (!e_comp_wl->wl.disp) return EINA_FALSE;
+ if (e_comp->wl_comp_data->video.global) return EINA_TRUE;
/* try to add tizen_video to wayland globals */
global = wl_global_create(e_comp_wl->wl.disp, &tizen_video_interface,
if (!global)
{
ERR("Could not add tizen_video to wayland globals");
- return 0;
+ return EINA_FALSE;
}
e_comp->wl_comp_data->video.global = global;
e_info_server_hook_set("video-to-primary", _e_comp_wl_video_info_cb_video_to_primary, NULL);
e_info_server_hook_set("video-punch", _e_comp_wl_video_info_cb_video_punch, NULL);
- return 1;
+ return EINA_TRUE;
}
EINTERN void
#define E_COMP_WL
-EINTERN int e_comp_wl_video_init(void);
-EINTERN void e_comp_wl_video_shutdown(void);
+EINTERN Eina_Bool e_comp_wl_video_init(void);
+EINTERN void e_comp_wl_video_shutdown(void);
#define C(b,m) (((b) >> (m)) & 0xFF)
#define FOURCC_STR(id) C(id,0), C(id,8), C(id,16), C(id,24)