aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons/Lesson_38
diff options
context:
space:
mode:
Diffstat (limited to 'Lessons/Lesson_38')
-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
+