[submodule "UnitTestFrameworkPkg/Library/GoogleTestLib/googletest"]
path = UnitTestFrameworkPkg/Library/GoogleTestLib/googletest
url = https://github.com/google/googletest.git
+[submodule "UnitTestFrameworkPkg/Library/SubhookLib/subhook"]
+ path = UnitTestFrameworkPkg/Library/SubhookLib/subhook
+ url = https://github.com/Zeex/subhook.git
- `MdeModulePkg/Universal/RegularExpressionDxe/oniguruma <https://github.com/kkos/oniguruma/blob/abfc8ff81df4067f309032467785e06975678f0d/COPYING>`__\r
- `UnitTestFrameworkPkg/Library/CmockaLib/cmocka <https://github.com/tianocore/edk2-cmocka/blob/f5e2cd77c88d9f792562888d2b70c5a396bfbf7a/COPYING>`__\r
- `UnitTestFrameworkPkg/Library/GoogleTestLib/googletest <https://github.com/google/googletest/blob/86add13493e5c881d7e4ba77fb91c1f57752b3a4/LICENSE>`__\r
+- `UnitTestFrameworkPkg/Library/SubhookLib/subhook <https://github.com/Zeex/subhook/blob/83d4e1ebef3588fae48b69a7352cc21801cb70bc/LICENSE.txt>`__\r
- `RedfishPkg/Library/JsonLib/jansson <https://github.com/akheron/jansson/blob/2882ead5bb90cf12a01b07b2c2361e24960fae02/LICENSE>`__\r
\r
The EDK II Project is composed of packages. The maintainers for each package\r
--- /dev/null
+/** @file\r
+ SubhookLib class with APIs from the subhook project\r
+\r
+ Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef SUBHOOK_LIB_H_\r
+#define SUBHOOK_LIB_H_\r
+\r
+#define SUBHOOK_STATIC\r
+#include <subhook.h>\r
+\r
+#endif\r
--- /dev/null
+## @file\r
+# This module provides Subhook Library implementation.\r
+#\r
+# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010018\r
+ BASE_NAME = SubhookLib\r
+ MODULE_UNI_FILE = SubhookLib.uni\r
+ FILE_GUID = 70E03378-E140-46A8-8E65-7719DA14A240\r
+ MODULE_TYPE = HOST_APPLICATION\r
+ VERSION_STRING = 0.1\r
+ LIBRARY_CLASS = SubhookLib\r
+\r
+#\r
+# VALID_ARCHITECTURES = IA32 X64\r
+#\r
+\r
+[Sources]\r
+ subhook/subhook.c\r
+\r
+[Packages]\r
+ UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec\r
+\r
+[BuildOptions]\r
+ MSFT:*_*_*_CC_FLAGS == /c /EHsc /Zi /DSUBHOOK_STATIC /Od\r
+ GCC:*_*_IA32_CC_FLAGS == -g -c -O0 -m32\r
+ GCC:*_*_X64_CC_FLAGS == -g -c -O0 -m64\r
--- /dev/null
+// /** @file\r
+// This module provides Subhook Library implementation.\r
+//\r
+// Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+// SPDX-License-Identifier: BSD-2-Clause-Patent\r
+//\r
+// **/\r
+\r
+#string STR_MODULE_ABSTRACT #language en-US "Subhook Library implementation"\r
+\r
+#string STR_MODULE_DESCRIPTION #language en-US "This module provides Subhook Library implementation."\r
--- /dev/null
+Subproject commit 83d4e1ebef3588fae48b69a7352cc21801cb70bc
#\r
UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf\r
UnitTestFrameworkPkg/Library/GoogleTestLib/GoogleTestLib.inf\r
+ UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.inf\r
UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf\r
UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.inf\r
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.inf\r
Library/CmockaLib/cmocka/include\r
Library/GoogleTestLib/googletest/googletest/include\r
Library/GoogleTestLib/googletest/googlemock/include\r
+ Library/SubhookLib/subhook\r
\r
[Includes.Common.Private]\r
PrivateInclude\r
## @libraryclass GoogleTest infrastructure\r
#\r
GoogleTestLib|Include/Library/GoogleTestLib.h\r
+ SubhookLib|Include/Library/SubhookLib.h\r
\r
[LibraryClasses.Common.Private]\r
## @libraryclass Provides a unit test result report\r
CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.inf\r
CmockaLib|UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf\r
GoogleTestLib|UnitTestFrameworkPkg/Library/GoogleTestLib/GoogleTestLib.inf\r
+ SubhookLib|UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.inf\r
UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.inf\r
DebugLib|UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf\r
MemoryAllocationLib|UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.inf\r