mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-27 13:34:33 -04:00
Implement dumping GUIDs from firmware and add more to builtin database
This commit is contained in:
parent
afce02430a
commit
d16c438069
6 changed files with 659 additions and 51 deletions
|
@ -1,6 +1,6 @@
|
|||
/* guiddatabase.h
|
||||
|
||||
Copyright (c) 2017, Nikolaj Schlej. All rights reserved.
|
||||
Copyright (c) 2017, LongSoft. All rights reserved.
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -13,10 +13,28 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
#ifndef GUID_DATABASE_H
|
||||
#define GUID_DATABASE_H
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "basetypes.h"
|
||||
#include "ustring.h"
|
||||
#include "ffsparser.h"
|
||||
#include "ffs.h"
|
||||
#include "utility.h"
|
||||
|
||||
struct OperatorLessForGuids : public std::binary_function<EFI_GUID, EFI_GUID, bool>
|
||||
{
|
||||
bool operator()(const EFI_GUID& lhs, const EFI_GUID& rhs) const
|
||||
{
|
||||
return (memcmp(&lhs, &rhs, sizeof(EFI_GUID)) < 0);
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::map<EFI_GUID, UString, OperatorLessForGuids> GuidDatabase;
|
||||
|
||||
UString guidDatabaseLookup(const EFI_GUID & guid);
|
||||
void initGuidDatabase(const UString & path = "", UINT32* numEntries = NULL);
|
||||
GuidDatabase guidDatabaseFromTreeRecursive(TreeModel * model, const UModelIndex index);
|
||||
USTATUS guidDatabseExportToFile(const UString & outPath, GuidDatabase & db);
|
||||
|
||||
#endif // GUID_DATABASE_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue