e_video_comp_iface: make e_video_comp_iface 38/305038/1
authorSooChan Lim <sc1.lim@samsung.com>
Sun, 21 Jan 2024 04:57:14 +0000 (13:57 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 26 Jan 2024 00:59:23 +0000 (09:59 +0900)
It has E_Video_Comp_Iface structure.

Change-Id: I5d2c8cc09e78c1687b29db3dc13399dea25d9151

src/bin/video/e_video_comp_iface.h [new file with mode: 0644]
src/bin/video/e_video_internal.h

diff --git a/src/bin/video/e_video_comp_iface.h b/src/bin/video/e_video_comp_iface.h
new file mode 100644 (file)
index 0000000..fdca057
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef E_VIDEO_COMP_IFACE
+#define E_VIDEO_COMP_IFACE
+
+#include "e_client_video_intern.h"
+
+typedef struct _E_Video_Comp_Iface E_Video_Comp_Iface;
+
+struct _E_Video_Comp_Iface
+{
+   void            (*destroy)(E_Video_Comp_Iface *iface);
+   Eina_Bool       (*property_get)(E_Video_Comp_Iface *iface, unsigned int id, tdm_value *value);
+   Eina_Bool       (*property_set)(E_Video_Comp_Iface *iface, unsigned int id, tdm_value value, Eina_Bool sync);
+   Eina_Bool       (*property_delay_set)(E_Video_Comp_Iface *iface, unsigned int id, tdm_value value);
+   Eina_Bool       (*available_properties_get)(E_Video_Comp_Iface *iface, const tdm_prop **props, int *count);
+   /* FIXME for hwc windows mode */
+   Eina_Bool       (*info_get)(E_Video_Comp_Iface *iface, E_Client_Video_Info *info);
+   Eina_Bool       (*commit_data_release)(E_Video_Comp_Iface *iface, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec);
+   tbm_surface_h   (*tbm_surface_get)(E_Video_Comp_Iface *iface);
+};
+
+#endif
index 1ab78e7..1837150 100644 (file)
@@ -1,29 +1,14 @@
 #ifndef _E_VIDEO_INTERNAL_H_
 #define _E_VIDEO_INTERNAL_H_
 
-#include "e_client_video_intern.h"
-
 #include <tdm.h>
 #include <tbm_surface.h>
 
-typedef struct _E_Video_Comp_Iface E_Video_Comp_Iface;
+#include "e_video_comp_iface.h"
 
 /* A callback which is called when HWC backend fails to render buffer. */
 typedef void (*E_Video_Hwc_Render_Fail_Cb)(E_Client_Video *ecv);
 
-struct _E_Video_Comp_Iface
-{
-   void            (*destroy)(E_Video_Comp_Iface *iface);
-   Eina_Bool       (*property_get)(E_Video_Comp_Iface *iface, unsigned int id, tdm_value *value);
-   Eina_Bool       (*property_set)(E_Video_Comp_Iface *iface, unsigned int id, tdm_value value, Eina_Bool sync);
-   Eina_Bool       (*property_delay_set)(E_Video_Comp_Iface *iface, unsigned int id, tdm_value value);
-   Eina_Bool       (*available_properties_get)(E_Video_Comp_Iface *iface, const tdm_prop **props, int *count);
-   /* FIXME for hwc windows mode */
-   Eina_Bool       (*info_get)(E_Video_Comp_Iface *iface, E_Client_Video_Info *info);
-   Eina_Bool       (*commit_data_release)(E_Video_Comp_Iface *iface, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec);
-   tbm_surface_h   (*tbm_surface_get)(E_Video_Comp_Iface *iface);
-};
-
 EINTERN E_Hwc_Policy         e_zone_video_hwc_policy_get(E_Zone *zone);
 
 /* For fallback interface */