]> git.sesse.net Git - vlc/blobdiff - plugins/glide/intf_glide.c
Removed flooding debug info :)
[vlc] / plugins / glide / intf_glide.c
index acd1ea761c66b493423f2fabd548edcc94f46ddb..93e6911de4bf56fd06017e251d6aa1eb802d866a 100644 (file)
@@ -2,6 +2,7 @@
  * 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:
  *
@@ -26,8 +27,6 @@
 #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"
@@ -36,7 +35,9 @@
 #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"
 
@@ -54,9 +55,9 @@ typedef struct intf_sys_s
 } 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 ) );
@@ -71,17 +72,21 @@ int intf_SysCreate( intf_thread_t *p_intf )
         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 )
@@ -101,9 +106,9 @@ void intf_SysDestroy( intf_thread_t *p_intf )
 
 
 /*****************************************************************************
- * 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;
 
@@ -112,7 +117,7 @@ void intf_SysManage( intf_thread_t *p_intf )
     {
         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 );
         }
     }
 }