LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
install.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "lickdir.h"
9 #include "llist.h"
10 #include "menu.h"
11 #include "uniso.h"
12 
16 typedef struct {
18  char *id;
20  char *name;
21 } installed_t;
22 
28 node_t *get_conf_files(const char *path);
46 
62 int install(const char *id, const char *name, distro_t *distro,
63  const char *iso, const char *install_dir, lickdir_t *lick,
64  menu_t *menu);
65 
75 int install_cb(const char *id, const char *name, distro_t *distro,
76  const char *iso, const char *install_dir, lickdir_t *lick,
77  menu_t *menu, uniso_progress_cb cb, void *cb_data);
78 
86 int uninstall(const char *id, lickdir_t *lick, menu_t *menu);
node_t * get_conf_files(const char *path)
returns a list of paths to conf files in a directory
Definition: install.c:18
A linked list node.
Definition: llist.h:19
void free_installed(installed_t *i)
free the memory a installed_t is using
Definition: install.c:111
Extract relevant files from an ISO file.
int install_cb(const char *id, const char *name, distro_t *distro, const char *iso, const char *install_dir, lickdir_t *lick, menu_t *menu, uniso_progress_cb cb, void *cb_data)
install a distribution
Definition: install.c:121
Information about a distribution.
Definition: distro.h:43
Paths to the LICK directory and its components.
Definition: lickdir.h:15
information about an installed distribution
Definition: install.h:16
char * id
the distribution id
Definition: install.h:18
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
void free_list_installed(node_t *n)
free the memory a list of installed_t is using
Definition: install.c:117
char * name
the distribution human-friendly name
Definition: install.h:20
Information about a LICK directory.
A linked list library.
int uninstall(const char *id, lickdir_t *lick, menu_t *menu)
uninstall a distribution
Definition: install.c:254
node_t * list_installed(lickdir_t *lick)
returns a list of installed distributions
Definition: install.c:93
Hooks to call boot loader menu plugins.
Definition: menu.h:51