mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
AppleKeyMapAggregator: Update method signature (#231)
This commit is contained in:
parent
626bb17d65
commit
2b76346497
@ -30,30 +30,30 @@ APPLE_KEY_MAP_AGGREGATOR_PROTOCOL;
|
||||
// KEY_MAP_GET_KEY_STROKES
|
||||
/** Returns all pressed keys and key modifiers into the appropiate buffers.
|
||||
|
||||
@param[in] This Protocol instance pointer.
|
||||
@param[out] Modifiers The modifiers manipulating the given keys.
|
||||
@param[out] NumberOfKeyCodes On input the number of keys allocated.
|
||||
On output the number of keys returned into
|
||||
KeyCodes.
|
||||
@param[out] KeyCodes A Pointer to a caller-allocated the pressed
|
||||
keys get returned in.
|
||||
@param[in] This A pointer to the protocol instance.
|
||||
@param[out] Modifiers The modifiers manipulating the given keys.
|
||||
@param[in,out] NumberOfKeyCodes On input the number of keys allocated.
|
||||
On output the number of keys returned into
|
||||
KeyCodes.
|
||||
@param[out] KeyCodes A Pointer to a caller-allocated buffer in
|
||||
which the pressed keys get returned.
|
||||
|
||||
@retval EFI_SUCCESS The pressed keys have been returned into
|
||||
KeyCodes.
|
||||
@retval EFI_BUFFER_TOO_SMALL The memory required to return the value exceeds
|
||||
the size of the allocated Buffer.
|
||||
The required number of keys to allocate to
|
||||
complete the operation has been returned into
|
||||
NumberOfKeyCodes.
|
||||
@retval other An error returned by a sub-operation.
|
||||
@retval EFI_SUCCESS The pressed keys have been returned into
|
||||
KeyCodes.
|
||||
@retval EFI_BUFFER_TOO_SMALL The memory required to return the value exceeds
|
||||
the size of the allocated Buffer.
|
||||
The required number of keys to allocate to
|
||||
complete the operation has been returned into
|
||||
NumberOfKeyCodes.
|
||||
@retval other An error returned by a sub-operation.
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *KEY_MAP_GET_KEY_STROKES)(
|
||||
IN APPLE_KEY_MAP_AGGREGATOR_PROTOCOL *This,
|
||||
OUT APPLE_MODIFIER_MAP *Modifiers,
|
||||
OUT UINTN *NumberOfKeyCodes,
|
||||
OUT APPLE_KEY_CODE *KeyCodes
|
||||
IN APPLE_KEY_MAP_AGGREGATOR_PROTOCOL *This,
|
||||
OUT APPLE_MODIFIER_MAP *Modifiers,
|
||||
IN OUT UINTN *NumberOfKeyCodes,
|
||||
OUT APPLE_KEY_CODE *KeyCodes OPTIONAL
|
||||
);
|
||||
|
||||
// KEY_MAP_CONTAINS_KEY_STROKES
|
||||
|
||||
@ -123,31 +123,31 @@ InternalGetKeyStrokesByIndex (
|
||||
// InternalGetKeyStrokes
|
||||
/** Returns all pressed keys and key modifiers into the appropiate buffers.
|
||||
|
||||
@param[in] This A pointer to the protocol instance.
|
||||
@param[out] Modifiers The modifiers manipulating the given keys.
|
||||
@param[out] NumberOfKeyCodes On input the number of keys allocated.
|
||||
On output the number of keys returned into
|
||||
KeyCodes.
|
||||
@param[out] KeyCodes A Pointer to a caller-allocated the pressed
|
||||
keys get returned in.
|
||||
@param[in] This A pointer to the protocol instance.
|
||||
@param[out] Modifiers The modifiers manipulating the given keys.
|
||||
@param[in,out] NumberOfKeyCodes On input the number of keys allocated.
|
||||
On output the number of keys returned into
|
||||
KeyCodes.
|
||||
@param[out] KeyCodes A Pointer to a caller-allocated buffer in
|
||||
which the pressed keys get returned.
|
||||
|
||||
@retval EFI_SUCCESS The pressed keys have been returned into
|
||||
KeyCodes.
|
||||
@retval EFI_BUFFER_TOO_SMALL The memory required to return the value exceeds
|
||||
the size of the allocated Buffer.
|
||||
The required number of keys to allocate to
|
||||
complete the operation has been returned into
|
||||
NumberOfKeyCodes.
|
||||
@retval other An error returned by a sub-operation.
|
||||
@retval EFI_SUCCESS The pressed keys have been returned into
|
||||
KeyCodes.
|
||||
@retval EFI_BUFFER_TOO_SMALL The memory required to return the value exceeds
|
||||
the size of the allocated Buffer.
|
||||
The required number of keys to allocate to
|
||||
complete the operation has been returned into
|
||||
NumberOfKeyCodes.
|
||||
@retval other An error returned by a sub-operation.
|
||||
**/
|
||||
STATIC
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
InternalGetKeyStrokes (
|
||||
IN APPLE_KEY_MAP_AGGREGATOR_PROTOCOL *This,
|
||||
OUT APPLE_MODIFIER_MAP *Modifiers,
|
||||
OUT UINTN *NumberOfKeyCodes,
|
||||
IN OUT APPLE_KEY_CODE *KeyCodes OPTIONAL
|
||||
OUT APPLE_MODIFIER_MAP *Modifiers,
|
||||
IN OUT UINTN *NumberOfKeyCodes,
|
||||
OUT APPLE_KEY_CODE *KeyCodes OPTIONAL
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user