OpenCore
1.0.4
OpenCore Bootloader
|
#include <AppleMacEfi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include "AppleEventInternal.h"
Go to the source code of this file.
Data Structures | |
struct | APPLE_EVENT_HANDLE_PRIVATE |
Macros | |
#define | APPLE_EVENT_HANDLE_PRIVATE_SIGNATURE SIGNATURE_32 ('A', 'L', 's', 't') |
#define | APPLE_EVENT_HANDLE_PRIVATE_FROM_LIST_ENTRY(Handle) |
Functions | |
EFI_EVENT | EventLibCreateTimerEvent (IN EFI_EVENT_NOTIFY NotifyFunction, IN VOID *NotifyContext, IN UINT64 TriggerTime, IN BOOLEAN SignalPeriodic, IN EFI_TPL NotifyTpl) |
EFI_EVENT | EventLibCreateNotifyTimerEvent (IN EFI_EVENT_NOTIFY NotifyFunction, IN VOID *NotifyContext, IN UINT64 TriggerTime, IN BOOLEAN SignalPeriodic) |
VOID | EventLibCancelEvent (IN EFI_EVENT Event) |
VOID | EventSignalEvents (IN APPLE_EVENT_INFORMATION *EventInformation) |
VOID | InternalFlagAllEventsReady (VOID) |
VOID | InternalSignalEvents (IN APPLE_EVENT_INFORMATION *Information) |
VOID | InternalRemoveUnregisteredEvents (VOID) |
STATIC EFI_STATUS | InternalCreatePollEvents (VOID) |
VOID | InternalCancelPollEvents (VOID) |
EFI_STATUS EFIAPI | EventRegisterHandler (IN APPLE_EVENT_TYPE Type, IN APPLE_EVENT_NOTIFY_FUNCTION NotifyFunction, OUT APPLE_EVENT_HANDLE *Handle, IN VOID *NotifyContext) |
EFI_STATUS EFIAPI | EventUnregisterHandler (IN APPLE_EVENT_HANDLE Handle) |
EFI_STATUS EFIAPI | EventSetCursorPosition (IN DIMENSION *Position) |
EFI_STATUS EFIAPI | EventSetEventName (IN OUT APPLE_EVENT_HANDLE Handle, IN CHAR8 *Name) |
EFI_STATUS EFIAPI | EventIsCapsLockOn (IN OUT BOOLEAN *CLockOn) |
STATIC VOID | InternalUnregisterHandlers (VOID) |
EFI_STATUS EFIAPI | AppleEventUnload (VOID) |
APPLE_EVENT_PROTOCOL * | OcAppleEventInstallProtocol (IN BOOLEAN Install, IN BOOLEAN Reinstall, IN BOOLEAN CustomDelays, IN UINT16 KeyInitialDelay, IN UINT16 KeySubsequentDelay, IN BOOLEAN GraphicsInputMirroring, IN UINT32 PointerPollMin, IN UINT32 PointerPollMax, IN UINT32 PointerPollMask, IN UINT16 PointerSpeedDiv, IN UINT16 PointerSpeedMul, IN UINT16 PointerDwellClickTimeout, IN UINT16 PointerDwellDoubleClickTimeout, IN UINT16 PointerDwellRadius) |
Variables | |
STATIC LIST_ENTRY | mEventHandles = INITIALIZE_LIST_HEAD_VARIABLE (mEventHandles) |
STATIC UINTN | mNumberOfEventHandles = 0 |
STATIC APPLE_EVENT_PROTOCOL | mAppleEventProtocol |
AppleEventDxe
Copyright (c) 2018, vit9696
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcAppleEventLib.c.
#define APPLE_EVENT_HANDLE_PRIVATE_FROM_LIST_ENTRY | ( | Handle | ) |
Definition at line 34 of file OcAppleEventLib.c.
#define APPLE_EVENT_HANDLE_PRIVATE_SIGNATURE SIGNATURE_32 ('A', 'L', 's', 't') |
Definition at line 30 of file OcAppleEventLib.c.
EFI_STATUS EFIAPI AppleEventUnload | ( | VOID | ) |
Definition at line 532 of file OcAppleEventLib.c.
EFI_STATUS EFIAPI EventIsCapsLockOn | ( | IN OUT BOOLEAN * | CLockOn | ) |
Retrieves the state of the CapsLock key.
[in,out] | CLockOn | This parameter indicates the state of the CapsLock key. |
EFI_SUCCESS | The CapsLock state was successfully returned in CLockOn. |
EFI_INVALID_PARAMETER | CLockOn is NULL. |
Definition at line 492 of file OcAppleEventLib.c.
VOID EventLibCancelEvent | ( | IN EFI_EVENT | Event | ) |
Definition at line 129 of file OcAppleEventLib.c.
EFI_EVENT EventLibCreateNotifyTimerEvent | ( | IN EFI_EVENT_NOTIFY | NotifyFunction, |
IN VOID * | NotifyContext, | ||
IN UINT64 | TriggerTime, | ||
IN BOOLEAN | SignalPeriodic ) |
Definition at line 109 of file OcAppleEventLib.c.
EFI_EVENT EventLibCreateTimerEvent | ( | IN EFI_EVENT_NOTIFY | NotifyFunction, |
IN VOID * | NotifyContext, | ||
IN UINT64 | TriggerTime, | ||
IN BOOLEAN | SignalPeriodic, | ||
IN EFI_TPL | NotifyTpl ) |
Definition at line 63 of file OcAppleEventLib.c.
EFI_STATUS EFIAPI EventRegisterHandler | ( | IN APPLE_EVENT_TYPE | Type, |
IN APPLE_EVENT_NOTIFY_FUNCTION | NotifyFunction, | ||
OUT APPLE_EVENT_HANDLE * | Handle, | ||
IN VOID * | NotifyContext ) |
Definition at line 312 of file OcAppleEventLib.c.
EFI_STATUS EFIAPI EventSetCursorPosition | ( | IN DIMENSION * | Position | ) |
This function is used to change the position of the cursor on the screen.
[in] | Position | The position where to position the cursor. |
EFI_INVALID_PARAMETER | Position is invalid. |
Definition at line 426 of file OcAppleEventLib.c.
EFI_STATUS EFIAPI EventSetEventName | ( | IN OUT APPLE_EVENT_HANDLE | Handle, |
IN CHAR8 * | Name ) |
This function is used to assign a name to an event.
[in,out] | Handle | |
[in] | Name |
EFI_SUCCESS | The event name was assigned successfully. |
EFI_INVALID_PARAMETER | EventHandle or EventName is NULL. |
EFI_OUT_OF_RESOURCES | There are not enough resources to allocate the event name. |
Definition at line 449 of file OcAppleEventLib.c.
VOID EventSignalEvents | ( | IN APPLE_EVENT_INFORMATION * | EventInformation | ) |
Definition at line 146 of file OcAppleEventLib.c.
EFI_STATUS EFIAPI EventUnregisterHandler | ( | IN APPLE_EVENT_HANDLE | Handle | ) |
Definition at line 374 of file OcAppleEventLib.c.
VOID InternalCancelPollEvents | ( | VOID | ) |
Definition at line 299 of file OcAppleEventLib.c.
STATIC EFI_STATUS InternalCreatePollEvents | ( | VOID | ) |
Definition at line 276 of file OcAppleEventLib.c.
VOID InternalFlagAllEventsReady | ( | VOID | ) |
Definition at line 179 of file OcAppleEventLib.c.
VOID InternalRemoveUnregisteredEvents | ( | VOID | ) |
Definition at line 239 of file OcAppleEventLib.c.
VOID InternalSignalEvents | ( | IN APPLE_EVENT_INFORMATION * | Information | ) |
Definition at line 205 of file OcAppleEventLib.c.
STATIC VOID InternalUnregisterHandlers | ( | VOID | ) |
Definition at line 504 of file OcAppleEventLib.c.
APPLE_EVENT_PROTOCOL * OcAppleEventInstallProtocol | ( | IN BOOLEAN | Install, |
IN BOOLEAN | Reinstall, | ||
IN BOOLEAN | CustomDelays, | ||
IN UINT16 | KeyInitialDelay, | ||
IN UINT16 | KeySubsequentDelay, | ||
IN BOOLEAN | GraphicsInputMirroring, | ||
IN UINT32 | PointerPollMin, | ||
IN UINT32 | PointerPollMax, | ||
IN UINT32 | PointerPollMask, | ||
IN UINT16 | PointerSpeedDiv, | ||
IN UINT16 | PointerSpeedMul, | ||
IN UINT16 | PointerDwellClickTimeout, | ||
IN UINT16 | PointerDwellDoubleClickTimeout, | ||
IN UINT16 | PointerDwellRadius ) |
Install and initialise Apple Event protocol.
[in] | Install | If false, do not install even when no suitable OEM version found. |
[in] | Reinstall | If true, force overwrite installed protocol. If false, use Apple OEM protocol where possible. |
[in] | CustomDelays | If true, use key delays specified. If false, use Apple OEM default key delay values. OC builtin AppleEvent only. |
[in] | KeyInitialDelay | Key repeat initial delay in 10ms units. |
[in] | KeySubsequentDelay | Key repeat subsequent delay in 10ms units. If zero, warn and use 1. |
[in] | GraphicsInputMirroring | If true, disable Apple default behaviour which can prevent keyboard input reaching non-Apple GUI UEFI apps. OC builtin AppleEvent only. |
[in] | PointerPollMin | Pointer polling minimal period in ms. |
[in] | PointerPollMax | Pointer polling maximum period in ms. |
[in] | PointerPollMask | Pointer polling mask to choose polled handles. |
[in] | PointerSpeedDiv | Pointer speed divisor. If zero, warn and use 1. |
[in] | PointerSpeedMul | Pointer speed multiplier. |
[in] | PointerDwellClickTimeout | Pointer dwell-clicking single left click timeout. |
[in] | PointerDwellDoubleClickTimeout | Pointer dwell-clicking single left double click timeout. |
[in] | PointerDwellRadius | Pointer dwell-clicking tolerance radius in pixels. |
installed | or located protocol or NULL. |
Definition at line 556 of file OcAppleEventLib.c.
STATIC APPLE_EVENT_PROTOCOL mAppleEventProtocol |
Definition at line 520 of file OcAppleEventLib.c.
STATIC LIST_ENTRY mEventHandles = INITIALIZE_LIST_HEAD_VARIABLE (mEventHandles) |
Definition at line 56 of file OcAppleEventLib.c.
STATIC UINTN mNumberOfEventHandles = 0 |
Definition at line 59 of file OcAppleEventLib.c.