[MPlayer-cvslog] r33396 - in trunk/gui: interface.c interface.h

ib subversion at mplayerhq.hu
Sat May 7 17:58:06 CEST 2011


Author: ib
Date: Sat May  7 17:58:06 2011
New Revision: 33396

Log:
Declare parameter type for guiExit() more precisely.

This is possible now that guiExit() isn't longer called
by guiDone() with parameter DONE.

Modified:
   trunk/gui/interface.c
   trunk/gui/interface.h

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sat May  7 17:34:10 2011	(r33395)
+++ trunk/gui/interface.c	Sat May  7 17:58:06 2011	(r33396)
@@ -40,7 +40,6 @@
 #include "libvo/video_out.h"
 #include "libvo/x11_common.h"
 #include "mixer.h"
-#include "mp_core.h"
 #include "mp_msg.h"
 #include "mpcommon.h"
 #include "mplayer.h"
@@ -414,7 +413,7 @@ void guiDone(void)
     }
 }
 
-void guiExit(int how)
+void guiExit(enum exit_reason how)
 {
     exit_player_with_rc(how, how >= EXIT_ERROR);
 }

Modified: trunk/gui/interface.h
==============================================================================
--- trunk/gui/interface.h	Sat May  7 17:34:10 2011	(r33395)
+++ trunk/gui/interface.h	Sat May  7 17:58:06 2011	(r33396)
@@ -21,6 +21,7 @@
 
 #include "config.h"
 #include "m_config.h"
+#include "mp_core.h"
 #include "playtree.h"
 #include "stream/stream.h"
 
@@ -239,7 +240,7 @@ char *gstrdup(const char *str);
 void *gtkSet(int cmd, float fparam, void *vparam);
 void guiDone(void);
 void guiEventHandling(void);
-void guiExit(int how);
+void guiExit(enum exit_reason how);
 int guiGetEvent(int type, void *arg);
 void guiInit(void);
 void guiLoadFont(void);


More information about the MPlayer-cvslog mailing list