From 7d9311124853be51b5a65f41daa7bee0f37bf2ba Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Mon, 12 Jul 2021 13:01:06 +0300 Subject: Add protocol header file to lesson 38 Signed-off-by: Konstantin Aladyshev --- .../UefiLessonsPkg/Include/Library/SimpleLibrary.h | 2 ++ .../UefiLessonsPkg/Include/Protocol/SimpleClass.h | 28 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Lessons/Lesson_38/UefiLessonsPkg/Include/Library/SimpleLibrary.h create mode 100644 Lessons/Lesson_38/UefiLessonsPkg/Include/Protocol/SimpleClass.h (limited to 'Lessons/Lesson_38/UefiLessonsPkg') 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 + -- cgit v1.2.3-18-g5258