Re: [edk2-devel] [PATCH 06/35] EmulatorPkg: stop abusing EFI_HANDLE for keystroke notify registration
On 9/17/19 9:49 PM, Laszlo Ersek wrote: > EFI_REGISTER_KEYSTROKE_NOTIFY and EFI_UNREGISTER_KEYSTROKE_NOTIFY require > the notification handle to have type (VOID*). The notification handle has > nothing to do with the EFI_HANDLE type. > > This change is a semantic fix; functionally, it's a no-op. > > Cc: Andrew Fish > Cc: Jordan Justen > Cc: Ray Ni > Signed-off-by: Laszlo Ersek > --- > > Notes: > build-tested only > > EmulatorPkg/EmuGopDxe/GopInput.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/EmulatorPkg/EmuGopDxe/GopInput.c > b/EmulatorPkg/EmuGopDxe/GopInput.c > index fdd0b4911555..2a23564a2173 100644 > --- a/EmulatorPkg/EmuGopDxe/GopInput.c > +++ b/EmulatorPkg/EmuGopDxe/GopInput.c > @@ -517,7 +517,7 @@ EmuGopSimpleTextInExRegisterKeyNotify ( >IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, >IN EFI_KEY_DATA *KeyData, >IN EFI_KEY_NOTIFY_FUNCTIONKeyNotificationFunction, > - OUT EFI_HANDLE*NotifyHandle > + OUT VOID **NotifyHandle >) > { >EFI_STATUS Status; > @@ -600,7 +600,7 @@ EFI_STATUS > EFIAPI > EmuGopSimpleTextInExUnregisterKeyNotify ( >IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, > - IN EFI_HANDLE NotificationHandle > + IN VOID *NotificationHandle >) > /*++ > > Reviewed-by: Philippe Mathieu-Daude -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47918): https://edk2.groups.io/g/devel/message/47918 Mute This Topic: https://groups.io/mt/34180205/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH 06/35] EmulatorPkg: stop abusing EFI_HANDLE for keystroke notify registration
Reviewed-by: Ray Ni > -Original Message- > From: Laszlo Ersek > Sent: Tuesday, September 17, 2019 12:49 PM > To: edk2-devel-groups-io > Cc: Andrew Fish ; Justen, Jordan L > ; Ni, Ray > Subject: [PATCH 06/35] EmulatorPkg: stop abusing EFI_HANDLE for keystroke > notify registration > > EFI_REGISTER_KEYSTROKE_NOTIFY and EFI_UNREGISTER_KEYSTROKE_NOTIFY require > the notification handle to have type (VOID*). The notification handle has > nothing to do with the EFI_HANDLE type. > > This change is a semantic fix; functionally, it's a no-op. > > Cc: Andrew Fish > Cc: Jordan Justen > Cc: Ray Ni > Signed-off-by: Laszlo Ersek > --- > > Notes: > build-tested only > > EmulatorPkg/EmuGopDxe/GopInput.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/EmulatorPkg/EmuGopDxe/GopInput.c > b/EmulatorPkg/EmuGopDxe/GopInput.c > index fdd0b4911555..2a23564a2173 100644 > --- a/EmulatorPkg/EmuGopDxe/GopInput.c > +++ b/EmulatorPkg/EmuGopDxe/GopInput.c > @@ -517,7 +517,7 @@ EmuGopSimpleTextInExRegisterKeyNotify ( >IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, >IN EFI_KEY_DATA *KeyData, >IN EFI_KEY_NOTIFY_FUNCTIONKeyNotificationFunction, > - OUT EFI_HANDLE*NotifyHandle > + OUT VOID **NotifyHandle >) > { >EFI_STATUS Status; > @@ -600,7 +600,7 @@ EFI_STATUS > EFIAPI > EmuGopSimpleTextInExUnregisterKeyNotify ( >IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, > - IN EFI_HANDLE NotificationHandle > + IN VOID *NotificationHandle >) > /*++ > > -- > 2.19.1.3.g30247aa5d201 > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47423): https://edk2.groups.io/g/devel/message/47423 Mute This Topic: https://groups.io/mt/34180205/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [PATCH 06/35] EmulatorPkg: stop abusing EFI_HANDLE for keystroke notify registration
EFI_REGISTER_KEYSTROKE_NOTIFY and EFI_UNREGISTER_KEYSTROKE_NOTIFY require the notification handle to have type (VOID*). The notification handle has nothing to do with the EFI_HANDLE type. This change is a semantic fix; functionally, it's a no-op. Cc: Andrew Fish Cc: Jordan Justen Cc: Ray Ni Signed-off-by: Laszlo Ersek --- Notes: build-tested only EmulatorPkg/EmuGopDxe/GopInput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EmulatorPkg/EmuGopDxe/GopInput.c b/EmulatorPkg/EmuGopDxe/GopInput.c index fdd0b4911555..2a23564a2173 100644 --- a/EmulatorPkg/EmuGopDxe/GopInput.c +++ b/EmulatorPkg/EmuGopDxe/GopInput.c @@ -517,7 +517,7 @@ EmuGopSimpleTextInExRegisterKeyNotify ( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, IN EFI_KEY_DATA *KeyData, IN EFI_KEY_NOTIFY_FUNCTIONKeyNotificationFunction, - OUT EFI_HANDLE*NotifyHandle + OUT VOID **NotifyHandle ) { EFI_STATUS Status; @@ -600,7 +600,7 @@ EFI_STATUS EFIAPI EmuGopSimpleTextInExUnregisterKeyNotify ( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, - IN EFI_HANDLE NotificationHandle + IN VOID *NotificationHandle ) /*++ -- 2.19.1.3.g30247aa5d201 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47393): https://edk2.groups.io/g/devel/message/47393 Mute This Topic: https://groups.io/mt/34180205/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-