File: shelliface.h

package info (click to toggle)
pesign 0.112-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 928 kB
  • sloc: ansic: 11,693; sh: 606; makefile: 209
file content (46 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef SHELLIFACE_H
#define SHELLIFACE_H 1

/* this whole file needs to be moved into gnu-efi */

#define EFI_SHELL_INTERFACE_GUID \
 { 0x47c7b223, 0xc42a, 0x11d2, {0x8e,0x57,0x00,0xa0,0xc9,0x69,0x72,0x3b } }

typedef enum {
	ARG_NO_ATTRIB         = 0x0,
	ARG_IS_QUOTED         = 0x1,
	ARG_PARTIALLY_QUOTED  = 0x2,
	ARG_FIRST_HALF_QUOTED = 0x4,
	ARG_FIRST_CHAR_IS_ESC = 0x8
} EFI_SHELL_ARG_INFO_TYPES;

struct _EFI_SHELL_ARG_INFO {
	UINT32 Attributes;
} __attribute__((packed)) __attribute__((aligned (1)));

typedef struct _EFI_SHELL_ARG_INFO EFI_SHELL_ARG_INFO;

struct _EFI_SHELL_INTERFACE {
	EFI_HANDLE		ImageHandle;
	EFI_LOADED_IMAGE	*Info;

	CHAR16			**Argv;
	UINTN			Argc;

	CHAR16			**RedirArgv;
	UINTN			RedirArgc;

	EFI_FILE		*StdIn;
	EFI_FILE		*StdOut;
	EFI_FILE		*StdErr;

	EFI_SHELL_ARG_INFO	*ArgInfo;

	BOOLEAN			EchoOn;
} __attribute__((packed)) __attribute__((aligned (1)));

typedef struct _EFI_SHELL_INTERFACE EFI_SHELL_INTERFACE;

extern EFI_GUID gEfiShellInterfaceGuid;

#endif /* SHELLIFACE_H */