aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons/Lesson_38/UefiLessonsPkg
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-07-12 13:01:06 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-07-12 13:01:06 +0300
commit7d9311124853be51b5a65f41daa7bee0f37bf2ba (patch)
treefd316a8f3dcde17ee22d75999e76163f8d14f2c6 /Lessons/Lesson_38/UefiLessonsPkg
parent9a0b991bf12470ecbadd5ccd8cb4ec7386d23a75 (diff)
downloadUEFI-Lessons-7d9311124853be51b5a65f41daa7bee0f37bf2ba.tar.gz
UEFI-Lessons-7d9311124853be51b5a65f41daa7bee0f37bf2ba.tar.bz2
UEFI-Lessons-7d9311124853be51b5a65f41daa7bee0f37bf2ba.zip
Add protocol header file to lesson 38
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons/Lesson_38/UefiLessonsPkg')
-rw-r--r--Lessons/Lesson_38/UefiLessonsPkg/Include/Library/SimpleLibrary.h2
-rw-r--r--Lessons/Lesson_38/UefiLessonsPkg/Include/Protocol/SimpleClass.h28
2 files changed, 30 insertions, 0 deletions
diff --git a/Lessons/Lesson_38/UefiLessonsPkg/Include/Library/SimpleLibrary.h b/Lessons/Lesson_38/UefiLessonsPkg/Include/Library/SimpleLibrary.h
new file mode 100644
index 0000000..105bc87
--- /dev/null
+++ b/Lessons/Lesson_38/UefiLessonsPkg/Include/Library/SimpleLibrary.h
@@ -0,0 +1,2 @@
+UINTN Plus2(UINTN number);
+
diff --git a/Lessons/Lesson_38/UefiLessonsPkg/Include/Protocol/SimpleClass.h b/Lessons/Lesson_38/UefiLessonsPkg/Include/Protocol/SimpleClass.h
new file mode 100644
index 0000000..4ccf629
--- /dev/null
+++ b/Lessons/Lesson_38/UefiLessonsPkg/Include/Protocol/SimpleClass.h
@@ -0,0 +1,28 @@
+#ifndef __SIMPLE_CLASS_PROTOCOL_H__
+#define __SIMPLE_CLASS_PROTOCOL_H__
+
+
+typedef struct _SIMPLE_CLASS_PROTOCOL SIMPLE_CLASS_PROTOCOL;
+
+typedef
+EFI_STATUS
+(EFIAPI* SIMPLE_CLASS_GET_NUMBER)(
+ UINTN* Number
+ );
+
+
+typedef
+EFI_STATUS
+(EFIAPI* SIMPLE_CLASS_SET_NUMBER)(
+ UINTN Number
+ );
+
+
+struct _SIMPLE_CLASS_PROTOCOL {
+ SIMPLE_CLASS_GET_NUMBER GetNumber;
+ SIMPLE_CLASS_SET_NUMBER SetNumber;
+};
+
+
+#endif
+