OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
EventQueue.c File Reference
#include <AppleMacEfi.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include "AppleEventInternal.h"

Go to the source code of this file.

Data Structures

struct  APPLE_EVENT_QUEUE
 

Macros

#define APPLE_EVENT_QUEUE_SIGNATURE   SIGNATURE_32 ('A', 'E', 'v', 'Q')
 
#define APPLE_EVENT_QUEUE_FROM_LIST_ENTRY(ListEntry)
 

Functions

VOID InternalSignalAndCloseQueueEvent (VOID)
 
STATIC VOID EFIAPI InternalQueueEventNotifyFunction (IN EFI_EVENT Event, IN VOID *Context)
 
VOID InternalCreateQueueEvent (VOID)
 
APPLE_EVENT_INFORMATIONEventCreateAppleEventQueueInfo (IN APPLE_EVENT_DATA EventData, IN APPLE_EVENT_TYPE EventType, IN DIMENSION *PointerPosition, IN APPLE_MODIFIER_MAP Modifiers)
 
VOID EventAddEventToQueue (IN APPLE_EVENT_INFORMATION *Information)
 
EFI_STATUS EventCreateEventQueue (IN APPLE_EVENT_DATA EventData, IN APPLE_EVENT_TYPE EventType, IN APPLE_MODIFIER_MAP Modifiers)
 

Variables

STATIC EFI_EVENT mQueueEvent = NULL
 
STATIC BOOLEAN mQueueEventCreated = FALSE
 
STATIC LIST_ENTRY mQueue = INITIALIZE_LIST_HEAD_VARIABLE (mQueue)
 
STATIC EFI_LOCK mQueueLock
 

Detailed Description

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 EventQueue.c.

Macro Definition Documentation

◆ APPLE_EVENT_QUEUE_FROM_LIST_ENTRY

#define APPLE_EVENT_QUEUE_FROM_LIST_ENTRY ( ListEntry)
Value:
#define APPLE_EVENT_QUEUE_SIGNATURE
Definition EventQueue.c:32

Definition at line 35 of file EventQueue.c.

◆ APPLE_EVENT_QUEUE_SIGNATURE

#define APPLE_EVENT_QUEUE_SIGNATURE   SIGNATURE_32 ('A', 'E', 'v', 'Q')

Definition at line 32 of file EventQueue.c.

Function Documentation

◆ EventAddEventToQueue()

VOID EventAddEventToQueue ( IN APPLE_EVENT_INFORMATION * Information)

Definition at line 194 of file EventQueue.c.

◆ EventCreateAppleEventQueueInfo()

APPLE_EVENT_INFORMATION * EventCreateAppleEventQueueInfo ( IN APPLE_EVENT_DATA EventData,
IN APPLE_EVENT_TYPE EventType,
IN DIMENSION * PointerPosition,
IN APPLE_MODIFIER_MAP Modifiers )

Definition at line 150 of file EventQueue.c.

◆ EventCreateEventQueue()

EFI_STATUS EventCreateEventQueue ( IN APPLE_EVENT_DATA EventData,
IN APPLE_EVENT_TYPE EventType,
IN APPLE_MODIFIER_MAP Modifiers )

Definition at line 226 of file EventQueue.c.

◆ InternalCreateQueueEvent()

VOID InternalCreateQueueEvent ( VOID )

Definition at line 125 of file EventQueue.c.

◆ InternalQueueEventNotifyFunction()

STATIC VOID EFIAPI InternalQueueEventNotifyFunction ( IN EFI_EVENT Event,
IN VOID * Context )

Definition at line 80 of file EventQueue.c.

◆ InternalSignalAndCloseQueueEvent()

VOID InternalSignalAndCloseQueueEvent ( VOID )

Definition at line 63 of file EventQueue.c.

Variable Documentation

◆ mQueue

STATIC LIST_ENTRY mQueue = INITIALIZE_LIST_HEAD_VARIABLE (mQueue)

Definition at line 52 of file EventQueue.c.

◆ mQueueEvent

STATIC EFI_EVENT mQueueEvent = NULL

Definition at line 46 of file EventQueue.c.

◆ mQueueEventCreated

STATIC BOOLEAN mQueueEventCreated = FALSE

Definition at line 49 of file EventQueue.c.

◆ mQueueLock

STATIC EFI_LOCK mQueueLock
Initial value:
= {
0,
0,
FALSE
}

Definition at line 55 of file EventQueue.c.