-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefs.h
More file actions
29 lines (22 loc) · 672 Bytes
/
Copy pathdefs.h
File metadata and controls
29 lines (22 loc) · 672 Bytes
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
#ifndef DEFS_H
#define DEFS_H
#include <stddef.h>
#define MAX_PATH_LEN 4096
#define PROG_VERSION "1.1.0"
static const char SYS_EFI_PATH[] = "/sys/firmware/efi";
static const char DEFAULT_EFI_ZBM[] = "/boot/efi/EFI/zbm";
static const char DEFAULT_MBR_ZBM[] = "/boot/zbm";
static const char VMLINUZ_PREFIX[] = "vmlinuz-";
static const char INITRAMFS_PREFIX[] = "initramfs-";
static const char INITRAMFS_SUFFIX[] = ".img";
static const char UKI_SUFFIX_LOWER[] = ".efi";
static const char UKI_SUFFIX_UPPER[] = ".EFI";
struct kernel_entry {
char *full_filename;
char *version;
};
struct kernel_list {
struct kernel_entry* entries;
size_t count;
};
#endif