Commandline option development

Xavier MAILLARD zedek at
Tue Jul 9 11:53:45 CEST 2002

This is what I previously was using in the module configuration :

ADD_BOOL    ( "xvideo-xinerama", 1, NULL, XINERAMA_TEXT,
XINERAMA_LONGTEXT )ADD_INTEGER ( "xvideo-xineramascreen", -1, NULL,

HAVE_XINERAMA is well defined because I can see the 2 options into the

But when trying to pass --xinerama it tell me that it does not exists.

What I want to know is where can I find a good sample (ex: for



Gildas Bazin <gbazin at> disait récemment que :

> On Tuesday 09 July 2002 06:12, Xavier MAILLARD wrote:
>> Hello world,
>> As I'm finalizing xinerama support, I'd like to be able to set the
>> xinerama option onto the command line too.
>> I do not know where to find in the dev tree where this is implemented.
>> I guess someone knows it so please tell me :)
> Have a look at include/configuration.h, all the macros and functions related 
> to the config stuff are declared there.
> For a quick example look at plugins/x11/xvideo.c and x11.c, you will find a 
> section starting with MODULE_CONFIG_START and ending with 
> MODULE_CONFIG_STOP where all the config options need to be declared.
> When you want to get the content of a config variable you then need to use 
> the config_Get*() functions (look at plugins/x11/xcommon.c).
> Hope this helps,
> --
> Gildas

This is the vlc-devel mailing-list, see
To unsubscribe, please read
If you are in trouble, please contact <postmaster at>

More information about the vlc-devel mailing list