(Triggered by Alex's recent patches)
There are a few places in the code manually iterating across the
config tables provided through the UEFI system table. This set
implements a common search function and converts some existing
functions to use it.
I have not yet converted commands/efi/loadbios.c given that it
searches for multiple things in one go. Would be a trivial change.
Also, for cleanliness of call-sites a better approach may be to macroize
the function so that it was possible to simply go:
ptr = grub_efi_find_config_table(MY_VERY_SPECIAL_GUID);
This was not my preference, since that hides the fact that the
underlying datatype is a 128-bit struct.