From 20a2298b393807c2eba0f6768b2fde5bf2036eb0 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 13 Jul 2021 11:20:31 +0300 Subject: Reorder library lessons Signed-off-by: Konstantin Aladyshev --- .../UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c | 5 +++++ .../Library/SimpleLibrary/SimpleLibrary.inf | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c create mode 100644 Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf (limited to 'Lessons/Lesson_35/UefiLessonsPkg/Library') diff --git a/Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c b/Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c new file mode 100644 index 0000000..acffba4 --- /dev/null +++ b/Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c @@ -0,0 +1,5 @@ +#include + +UINTN Plus2(UINTN number) { + return number+2; +} diff --git a/Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf b/Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf new file mode 100644 index 0000000..92027a4 --- /dev/null +++ b/Lessons/Lesson_35/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf @@ -0,0 +1,15 @@ +[Defines] + INF_VERSION = 1.25 + BASE_NAME = SimpleLibrary + FILE_GUID = 826c8951-5bd2-4d72-a9d9-f7ab48684117 + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + LIBRARY_CLASS = SimpleLibrary | UEFI_APPLICATION + +[Sources] + SimpleLibrary.c + +[Packages] + MdePkg/MdePkg.dec + UefiLessonsPkg/UefiLessonsPkg.dec + -- cgit v1.2.3-18-g5258