* intf_glide.c: 3dfx interface plugin
*****************************************************************************
* Copyright (C) 2000 VideoLAN
+ * $Id: intf_glide.c,v 1.6 2001/01/05 18:46:43 massiot Exp $
*
* Authors:
*
#include "defs.h"
#include <stdlib.h> /* malloc(), free() */
-#include <sys/types.h> /* on BSD, uio.h needs types.h */
-#include <sys/uio.h> /* for input.h */
#include <linutil.h> /* Glide kbhit() and getch() */
#include "config.h"
#include "mtime.h"
#include "plugins.h"
-#include "input.h"
+#include "stream_control.h"
+#include "input_ext-intf.h"
+
#include "video.h"
#include "video_output.h"
} intf_sys_t;
/*****************************************************************************
- * intf_SysCreate: initialize 3dfx interface
+ * intf_GlideCreate: initialize 3dfx interface
*****************************************************************************/
-int intf_SysCreate( intf_thread_t *p_intf )
+int intf_GlideCreate( intf_thread_t *p_intf )
{
/* Allocate instance and initialize some members */
p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
p_intf->p_vout = vout_CreateThread( NULL, 0, 0, 0, NULL, 0, NULL );
if( p_intf->p_vout == NULL ) /* error */
{
- intf_ErrMsg("intf error: can't create output thread\n" );
+ intf_ErrMsg("intf error: can't create output thread" );
return( 1 );
}
}
+
+ /* bind keys */
+ intf_AssignNormalKeys( p_intf );
+
return( 0 );
}
/*****************************************************************************
- * intf_SysDestroy: destroy 3dfx interface
+ * intf_GlideDestroy: destroy 3dfx interface
*****************************************************************************/
-void intf_SysDestroy( intf_thread_t *p_intf )
+void intf_GlideDestroy( intf_thread_t *p_intf )
{
/* Close input thread, if any (blocking) */
if( p_intf->p_input )
/*****************************************************************************
- * intf_SysManage: event loop
+ * intf_GlideManage: event loop
*****************************************************************************/
-void intf_SysManage( intf_thread_t *p_intf )
+void intf_GlideManage( intf_thread_t *p_intf )
{
unsigned int buf;
{
if( intf_ProcessKey(p_intf, (int)buf = getch()) )
{
- intf_ErrMsg( "unhandled key '%c' (%i)\n", (char) buf, buf );
+ intf_ErrMsg( "unhandled key '%c' (%i)", (char) buf, buf );
}
}
}