summaryrefslogtreecommitdiffstats
path: root/subopt-helper.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-19 17:10:20 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-19 17:10:20 +0000
commitca8fc9929bdc71e2192a8fdbcab2eb0c1fb6191c (patch)
treeeb22dec8700b3581b735ae10863416673aac0c70 /subopt-helper.h
parentce701ae4386237798ffe06447021481e8e8002fc (diff)
downloadmpv-ca8fc9929bdc71e2192a8fdbcab2eb0c1fb6191c.tar.bz2
mpv-ca8fc9929bdc71e2192a8fdbcab2eb0c1fb6191c.tar.xz
New suboption type: malloc'ed, zero terminated string
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14539 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subopt-helper.h')
-rw-r--r--subopt-helper.h3
1 files changed, 2 insertions, 1 deletions
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;