В Fri, 27 Mar 2015 13:59:06 +0100 Vladimir 'φ-coder/phcoder' Serbinenko <phco...@gmail.com> пишет:
> Could we avoid exposing such details as offset in structures? It's way > too technical perhaps something like > smbios [--handle=HANDLE|--instance=N] [--set VAR] [TABLE.VARNAME] > where table and varname will be string identifiers and would be > translated using dictionaries. TABLE.VARNAME as whole string can be the > key, that format is just to avoid conflicts when similar fields are > exported in different tables. You can just put the vars you care about > in the dictionary. Do you mean something like "BIOS Information.BIOS Characteristics Extension Bytes"? Because otherwise where these names should come from and how users will know them? SMBIOS at the end is defined in terms of structure offsets. I suppose that any user of this command will know them. Either we will limit ourselves to known names documented in grub manual, but even then documentation will have to say "foo.bar refers to table bar at offset XX". Not sure how is it better. _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel