Commandline option development

Xavier MAILLARD zedek at fxgsproject.org
Tue Jul 9 11:20:15 CEST 2002


Hello,

Unfortunetly, this is not what I was talking about. What I want is to be
able to parse my own options contained in the command line.

For example let's I want to use xinerama on the first screen would be
something like that :
          vlc --xinerama 0

I think this more clear now. I can't figure out (but I am very tired)
where this code is declared into the tree.

Cheers,

zeDek

Gildas Bazin <gbazin at netcourrier.com> 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 http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list