]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Include/Protocol/Print.h
Clean up: update "EFI" to "UEFI" if applicable.
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / Print.h
... / ...
CommitLineData
1/*++\r
2\r
3Copyright (c) 2006 - 2007, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 Print.h\r
15\r
16Abstract:\r
17\r
18 This file defines the Print protocol\r
19\r
20--*/\r
21\r
22#ifndef __PPRINT_H__\r
23#define __PPRINT_H__\r
24\r
25#define EFI_PRINT_PROTOCOL_GUID \\r
26 { 0x5bcc3dbc, 0x8c57, 0x450a, { 0xbb, 0xc, 0xa1, 0xc0, 0xbd, 0xde, 0x48, 0xc } }\r
27\r
28//\r
29// Forward reference for pure ANSI compatability\r
30//\r
31typedef struct _EFI_PRINT_PROTOCOL EFI_PRINT_PROTOCOL;\r
32\r
33\r
34typedef\r
35UINTN\r
36(EFIAPI *UNI_VSPRINT) (\r
37 OUT CHAR16 *StartOfBuffer,\r
38 IN UINTN BufferSize,\r
39 IN CONST CHAR16 *FormatString,\r
40 IN VA_LIST Marker\r
41 );\r
42\r
43typedef\r
44UINTN
45(EFIAPI *UNI_VSPRINT_ASCII) (
46 OUT CHAR16 *StartOfBuffer,
47 IN UINTN BufferSize,
48 IN CONST CHAR8 *FormatString,
49 IN VA_LIST Marker
50 );\r
51\r
52typedef\r
53UINTN
54(EFIAPI *VALUE_TO_UNISTRING) (
55 IN OUT CHAR16 *Buffer,
56 IN UINTN Flags,
57 IN INT64 Value,
58 IN UINTN Width
59 );\r
60\r
61typedef\r
62UINTN
63(EFIAPI *ASCII_VSPRINT) (
64 OUT CHAR8 *StartOfBuffer,
65 IN UINTN BufferSize,
66 IN CONST CHAR8 *FormatString,
67 IN VA_LIST Marker
68 );\r
69\r
70typedef\r
71UINTN
72(EFIAPI *ASCII_VSPRINT_UNI) (
73 OUT CHAR8 *StartOfBuffer,
74 IN UINTN BufferSize,
75 IN CONST CHAR16 *FormatString,
76 IN VA_LIST Marker
77 );\r
78\r
79typedef\r
80UINTN
81(EFIAPI *VALUE_TO_ASCIISTRING) (
82 IN OUT CHAR8 *Buffer,
83 IN UINTN Flags,
84 IN INT64 Value,
85 IN UINTN Width
86 );\r
87\r
88struct _EFI_PRINT_PROTOCOL {\r
89 UNI_VSPRINT VSPrint;\r
90 UNI_VSPRINT_ASCII UniVSPrintAscii;\r
91 VALUE_TO_UNISTRING UniValueToString; \r
92 ASCII_VSPRINT AsciiVSPrint; \r
93 ASCII_VSPRINT_UNI AsciiVSPrintUni;\r
94 VALUE_TO_ASCIISTRING AsciiValueToString;\r
95};\r
96\r
97extern EFI_GUID gEfiPrintProtocolGuid;\r
98\r
99#endif\r