On Tue, Dec 04, 2012 at 04:08:00PM +0200, Zeeshan Ali (Khattak) wrote: > On Tue, Dec 4, 2012 at 1:01 PM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote: > > The values required for each of these setters > > is really OS-specific. To properly isolate apps from this, we need to > > have a data map concept, so libosinfo defines a canonical set of keyboard, > > language and timezone values, and then maps to the OS-specific values > > internally. > > > > This ISO language extraction is just another example of the need for > > a general datamap capability IMHO, and while we only see it for Windows > > currently, I would not be suprised if other OS we encounter in the future > > need it too. > > > > I did actually start hacking up datamap support, but never finished it. > > Not sure there is really a need to do mapping in the code for at least > the installers. Apart from app developers, we need to think about > non-C-hackers to be able to add data (including installer script > templates). If we put this in C, anyone wanting to add a new OS and/or > its installer will then be required to have to hack on libosinfo in C. They will need to make changes in the C code if they need a new datamap, they won't need to if they can reuse the existing one. Doesn't the alternative involve them writing some xslt instead? Christophe
Attachment:
pgpAOvl3t5h8w.pgp
Description: PGP signature
_______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list