vlc config file
Bill Eldridge
bill at rfa.org
Wed Feb 6 14:27:55 CET 2002
Samuel Hocevar wrote:
>
> On Wed, Feb 06, 2002, Henri Fallon wrote:
>
> > I really don't know yet, and have no time for now (school, etc...) but
> > XML sounds good to me.
>
> I think XML would be too heavy. We want an easily editable file, and
> we won't use 1% of the structurated data XML may provide us. Look at
> rcfiles in /etc, they almost all have one-liners, you can easily add
> comments, etc.
>
> As for the parser, we don't need to reinvent the wheel, flex and
> bison are here to help.
Well, with one liners, it's
easy enough to make it XML compatible
anyway, and since it's regular, why
a parser should be able to handle it
no problem. You don't specifically need
an XML parser to parse it if it's simple -
just use regular expressions for now,
and later on if someone needs to parse
it with an XML parser, you're already
set.
Typical Preferences:
[video]
size=160x128
rate=30
[audio]
channels=mono
frequency=44.1
Can easily be in XML form:
<preferences>
<video>
<size>160x128</size>
<rate>30</rate>
</video>
<audio>
<channels>mono</channels>
<frequency>44.1</frequency>
</audio>
</preferences>
--
Bill Eldridge
Radio Free Asia
bill at rfa.org
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
More information about the vlc
mailing list