LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
boot-loader.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "lickdir.h"
9 #include "menu.h"
10 #include "system-info.h"
11 
16 typedef struct {
18  int (*supported)();
20  int (*check)();
22  int (*install)(sys_info_t *info, lickdir_t *lick);
24  int (*uninstall)(sys_info_t *info, lickdir_t *lick);
26  menu_t *(*get_menu)();
27 } loader_t;
28 
38 void free_loader(loader_t *loader);
44 int check_loader(loader_t *l);
52 int install_loader(loader_t *l, sys_info_t *info,
53  lickdir_t *lick);
62 int uninstall_loader(loader_t *l, int reinstall, sys_info_t *info,
63  lickdir_t *lick);
82 int fix_loader(loader_t *l, menu_t *m, lickdir_t *lick);
89 int check_fix_loader(loader_t *l, menu_t *m, lickdir_t *lick);
Determine information about the system.
void free_loader(loader_t *loader)
frees memory used by a loader_t
Definition: boot-loader.c:45
Paths to the LICK directory and its components.
Definition: lickdir.h:15
int install(const char *id, const char *name, distro_t *distro, const char *iso, const char *install_dir, lickdir_t *lick, menu_t *menu)
install a distribution
Definition: install.c:211
loader_t * get_loader(sys_info_t *info)
get the boot loader plugin that should be used with the system
Definition: boot-loader.c:22
menu_t * get_menu(loader_t *l)
get the menu corresponding to the plugin
Definition: boot-loader.c:94
int check_loader(loader_t *l)
determine if the boot loader is already installed
Definition: boot-loader.c:50
functions relevant to a boot loader plugin. Do not use items directly, use the wrappers in boot-loade...
Definition: boot-loader.h:16
int fix_loader(loader_t *l, menu_t *m, lickdir_t *lick)
completely replace the Windows EFI loader
Definition: boot-loader.c:88
Information about a LICK directory.
int uninstall_loader(loader_t *l, int reinstall, sys_info_t *info, lickdir_t *lick)
uninstalls the loader
Definition: boot-loader.c:67
int uninstall(const char *id, lickdir_t *lick, menu_t *menu)
uninstall a distribution
Definition: install.c:254
Hooks to call boot loader menu plugins.
Definition: menu.h:51
relevant info about the system
Definition: system-info.h:76
int check_fix_loader(loader_t *l, menu_t *m, lickdir_t *lick)
determine if the loader has been fixed
Definition: boot-loader.c:82
int install_loader(loader_t *l, sys_info_t *info, lickdir_t *lick)
installs the loader
Definition: boot-loader.c:54