Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- Classes to capture properites of UEFI applications ------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_CONFIG_UEFI_APP_H
10#define LLVM_LIBC_CONFIG_UEFI_APP_H
11
12#include "include/llvm-libc-types/EFI_HANDLE.h"
13#include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"
14#include "src/__support/macros/config.h"
15#include "src/__support/macros/properties/architectures.h"
16
17#include <stdint.h>
18
19namespace LIBC_NAMESPACE_DECL {
20
21// Data structure which captures properties of a UEFI application.
22struct AppProperties {
23 // UEFI system table
24 EFI_SYSTEM_TABLE *system_table;
25
26 // UEFI image handle
27 EFI_HANDLE image_handle;
28};
29
30[[gnu::weak]] extern AppProperties app;
31
32} // namespace LIBC_NAMESPACE_DECL
33
34#endif // LLVM_LIBC_CONFIG_UEFI_APP_H
35

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of libc/config/uefi/app.h