Install and uninstall distributions. More...
Go to the source code of this file.
Data Structures | |
struct | installed_t |
information about an installed distribution More... | |
Functions | |
node_t * | get_conf_files (const char *path) |
returns a list of paths to conf files in a directory More... | |
node_t * | list_installed (lickdir_t *lick) |
returns a list of installed distributions More... | |
void | free_installed (installed_t *i) |
free the memory a installed_t is using More... | |
void | free_list_installed (node_t *n) |
free the memory a list of installed_t is using More... | |
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 More... | |
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 More... | |
int | uninstall (const char *id, lickdir_t *lick, menu_t *menu) |
uninstall a distribution More... | |
Install and uninstall distributions.
void free_installed | ( | installed_t * | i | ) |
free the memory a installed_t is using
i | the installed_t to free |
void free_list_installed | ( | node_t * | n | ) |
free the memory a list of installed_t is using
n | the list of installed_t to free |
node_t* get_conf_files | ( | const char * | path | ) |
returns a list of paths to conf files in a directory
path | the directory to look in |
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
id | the id, without spaces or quotes. Note the user may have multiple installations of the same distribution |
name | the human-friendly name. Note the user may have multiple installations of the same distribution |
distro | the Linux distribution the ISO is |
iso | the ISO file to extract from |
lick | the LICK directory |
install_dir | the directory to install to |
menu | the menu plugin |
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
see install for more information on parameters
cb | a function to call for extraction progress |
cb_data | extra data to call the callback with |
returns a list of installed distributions
lick | the LICK directory |