From ca8fc9929bdc71e2192a8fdbcab2eb0c1fb6191c Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 19 Jan 2005 17:10:20 +0000 Subject: New suboption type: malloc'ed, zero terminated string git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14539 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subopt-helper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'subopt-helper.h') diff --git a/subopt-helper.h b/subopt-helper.h index 6479f3894e..5891b8c0c8 100644 --- a/subopt-helper.h +++ b/subopt-helper.h @@ -12,6 +12,7 @@ #define OPT_ARG_BOOL 0 #define OPT_ARG_INT 1 #define OPT_ARG_STR 2 +#define OPT_ARG_MSTRZ 3 ///< A malloced, zero terminated string, use free()! typedef int (*opt_test_f)(void *); @@ -34,7 +35,7 @@ int subopt_parse( char const * const str, opt_t * opts ); /*------------------ arg specific types and declaration -------------------*/ typedef struct strarg_s { - unsigned char len; ///< length of the string determined by the parser + int len; ///< length of the string determined by the parser char const * str; ///< pointer to position inside the parse string } strarg_t; -- cgit v1.2.3