Commandline option development

Gildas Bazin gbazin at netcourrier.com
Tue Jul 9 10:53:44 CEST 2002


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