/*****************************************************************************\r
* Local prototypes.\r
*****************************************************************************/\r
-static int intf_Open ( intf_thread_t *p_intf );\r
-static void intf_Close ( intf_thread_t *p_intf );\r
static void intf_Run ( intf_thread_t *p_intf );\r
\r
int Win32Manage( void *p_data );\r
\r
/*****************************************************************************\r
- * Functions exported as capabilities. They are declared as static so that\r
- * we don't pollute the namespace too much.\r
+ * Open: initialize interface\r
*****************************************************************************/\r
-void _M( intf_getfunctions )( function_list_t * p_function_list )\r
+int E_(Open)( vlc_object_t *p_this )\r
{\r
- p_function_list->functions.intf.pf_open = intf_Open;\r
- p_function_list->functions.intf.pf_close = intf_Close;\r
- p_function_list->functions.intf.pf_run = intf_Run;\r
-}\r
+ intf_thread_t *p_intf = (intf_thread_t *)p_this;\r
\r
-/*****************************************************************************\r
- * intf_Open: initialize interface\r
- *****************************************************************************/\r
-static int intf_Open( intf_thread_t *p_intf )\r
-{\r
/* Allocate instance and initialize some members */\r
p_intf->p_sys = (intf_sys_s *) malloc( sizeof( intf_sys_t ) );\r
if( p_intf->p_sys == NULL )\r
};\r
\r
p_intfGlobal = p_intf;\r
+ p_intf->pf_run = intf_Run;\r
\r
p_intf->p_sys->p_sub = msg_Subscribe( p_intf );\r
\r
}\r
\r
/*****************************************************************************\r
- * intf_Close: destroy interface\r
+ * Close: destroy interface\r
*****************************************************************************/\r
-static void intf_Close( intf_thread_t *p_intf )\r
+void E_(Close)( vlc_object_t *p_this )\r
{\r
+ intf_thread_t *p_intf = (intf_thread_t *)p_this;\r
+\r
if( p_intf->p_sys->p_input )\r
{\r
vlc_object_release( p_intf->p_sys->p_input );\r
\r
vlc_mutex_unlock( &p_input->stream.stream_lock );\r
}\r
- else if( p_intf->p_sys->b_playing && !p_intf->p_vlc->b_die )\r
+ else if( p_intf->p_sys->b_playing && !p_intf->b_die )\r
{\r
p_intf->p_sys->p_window->ModeManage();\r
p_intf->p_sys->b_playing = 0;\r
}\r
\r
- if( p_intf->p_vlc->b_die )\r
+ if( p_intf->b_die )\r
{\r
vlc_mutex_unlock( &p_intf->change_lock );\r
\r