[MPlayer-cvslog] CVS: main subopt-helper.h,1.1,1.2

Reimar Döffinger CVS syncmail at mplayerhq.hu
Fri Dec 31 15:57:15 CET 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv28260

Modified Files:
	subopt-helper.h 
Log Message:
Add a type name for the test function


Index: subopt-helper.h
===================================================================
RCS file: /cvsroot/mplayer/main/subopt-helper.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- subopt-helper.h	31 Dec 2004 11:11:24 -0000	1.1
+++ subopt-helper.h	31 Dec 2004 14:57:12 -0000	1.2
@@ -13,13 +13,15 @@
 #define OPT_ARG_INT  1
 #define OPT_ARG_STR  2
 
+typedef int (*opt_test_f)(void *);
+
 /** simple structure for defining the option name, type and storage location */
 typedef struct opt_s
 {
   char * name; ///< string that identifies the option
   int type;    ///< option type as defined in subopt-helper.h
   void * valp; ///< pointer to the mem where the value should be stored
-  int (* test)(void *); ///< argument test func ( optional )
+  opt_test_f test; ///< argument test func ( optional )
   int set;     ///< Is set internally by the parser if the option was found.
                ///< Don't use it at initialization of your opts, it will be
                ///< overriden anyway!




More information about the MPlayer-cvslog mailing list