[Xineliboutput-cvslog] vdr-xineliboutput/xine vo_hook.h, 1.1, 1.2 vo_post.h, 1.1, 1.2 vo_hook.c, 1.
Brought to you by:
phintuka
From: Petri H. <phi...@us...> - 2008-11-21 20:08:04
|
Update of /cvsroot/xineliboutput/vdr-xineliboutput/xine In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26801 Modified Files: vo_hook.h vo_post.h vo_hook.c Log Message: Export default proxy handlers to be used in actual implementations Index: vo_hook.c =================================================================== RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/xine/vo_hook.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- vo_hook.c 20 Nov 2008 09:25:52 -0000 1.1 +++ vo_hook.c 21 Nov 2008 20:07:59 -0000 1.2 @@ -31,25 +31,25 @@ */ #define DEF_HANDLER3(RET, NAME, ARG1, ARG2, ARG3) \ -static RET vo_def_##NAME (vo_driver_t *self, ARG1 a1, ARG2 a2, ARG3 a3) { \ +RET vo_def_##NAME (vo_driver_t *self, ARG1 a1, ARG2 a2, ARG3 a3) { \ vo_driver_hook_t *this = (vo_driver_hook_t *) self; \ return this->orig_driver-> NAME (this->orig_driver, a1, a2, a3); \ } #define DEF_HANDLER2(RET, NAME, ARG1, ARG2) \ -static RET vo_def_##NAME (vo_driver_t *self, ARG1 a1, ARG2 a2) { \ +RET vo_def_##NAME (vo_driver_t *self, ARG1 a1, ARG2 a2) { \ vo_driver_hook_t *this = (vo_driver_hook_t *) self; \ return this->orig_driver-> NAME (this->orig_driver, a1, a2); \ } #define DEF_HANDLER1(RET, NAME, ARG1) \ -static RET vo_def_##NAME (vo_driver_t *self, ARG1 a1) { \ +RET vo_def_##NAME (vo_driver_t *self, ARG1 a1) { \ vo_driver_hook_t *this = (vo_driver_hook_t *) self; \ return this->orig_driver-> NAME (this->orig_driver, a1); \ } #define DEF_HANDLER0(RET, NAME) \ -static RET vo_def_##NAME (vo_driver_t *self) { \ +RET vo_def_##NAME (vo_driver_t *self) { \ vo_driver_hook_t *this = (vo_driver_hook_t *) self; \ return this->orig_driver-> NAME (this->orig_driver); \ } @@ -79,7 +79,7 @@ DEF_HANDLER2(int, gui_data_exchange, int, void * ); DEF_HANDLER0(int, redraw_needed ); -static void vo_def_dispose(vo_driver_t *self) +void vo_def_dispose(vo_driver_t *self) { vo_driver_hook_t *this = (vo_driver_hook_t *) self; if (this->orig_driver) Index: vo_hook.h =================================================================== RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/xine/vo_hook.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- vo_hook.h 20 Nov 2008 09:24:27 -0000 1.1 +++ vo_hook.h 21 Nov 2008 20:07:59 -0000 1.2 @@ -13,6 +13,12 @@ #include <xine/video_out.h> +/* + * synchronous video post plugins + * internal API + */ + + /* * vo_driver_hook_t * @@ -24,4 +30,13 @@ vo_driver_t *orig_driver; } vo_driver_hook_t; +/* proxy handlers: forward call to original driver */ + +uint32_t vo_def_get_capabilities(vo_driver_t *self); +int vo_def_get_property(vo_driver_t *self, int prop); +int vo_def_set_property(vo_driver_t *self, int prop, int val); + +void vo_def_dispose(vo_driver_t *self); + + #endif /* _XINELIBOUTPUT_VO_HOOK_H */ Index: vo_post.h =================================================================== RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/xine/vo_post.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- vo_post.h 20 Nov 2008 09:24:27 -0000 1.1 +++ vo_post.h 21 Nov 2008 20:07:59 -0000 1.2 @@ -13,6 +13,11 @@ #include <xine/video_out.h> +/* + * synchronous video post plugins + * public API + */ + /* Wire / unwire hook chain to video port */ int wire_video_driver(xine_video_port_t *video_port, vo_driver_t *hook); int unwire_video_driver(xine_video_port_t *video_port, vo_driver_t *hook, vo_driver_t *video_out); |