On P�, 2002-11-01 at 18:54, Juha Yrj�l� wrote: > Hi all, > > I'm starting to write a channel list for dvbsak. I can choose at > least three different formats of storing the list: > > a) XML, using libxml > + Simple to add additional fields (e.g. VES1820 register values) > + Lots of parsers in different programming languages can be used
So very simple to handle in such languages. I vote for it (and after I finish OLDAPI patching I can even start to code it :) > + Standardized > - Depends on libxml > - A bit hard to read > b) scconf (from OpenSC <http://www.opensc.org>) > + Simple to add additional fields > + Minimal effort on my part =) > + Readable by humans (or at least C programmers =)) > - Depends on scconf > + ... which isn't too large and can easily be embedded > in dvbsak package > - scconf depends on flex (until someone writes > a lightweight replacement parser) > c) Proprietary format > - Somewhat difficult to add additional fields > - Needs a lot of coding! > + No dependencies > > So a) could look like this (adapted partially from dvbtune): > [..] > > And b) would look like this: > > transport_stream 0x0003 { > original_network_id = 0x1234; > descriptor = "ab:123456"; > descriptor = "cd:654321"; > sat_tuning_info { > frequency = 22345; > symbol_rate = 12345; > polarity = h; > } > cable_tuning_info { > frequency = 250000; > symbol_rate = 7146; > modulation = 64-QAM; > } > service 0x0135 { > ca = true; > type = 1; > name = "Canal+ BL�"; > provider_name = "Telenor"; > stream 0x02AC { > type = 3; > language = "fin"; > } > } > ... > } > Looks good for me. > As for c), any suggestions? =) > Please not use any binary format. I think possibility of visual controlling is very useful and in this days here isn't any reason to have human unreadable database. /Honza -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as subject.
