LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
Data Structures | Functions
install.h File Reference

Install and uninstall distributions. More...

#include "lickdir.h"
#include "llist.h"
#include "menu.h"
#include "uniso.h"
Include dependency graph for install.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  installed_t
 information about an installed distribution More...
 

Functions

node_tget_conf_files (const char *path)
 returns a list of paths to conf files in a directory More...
 
node_tlist_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...
 

Detailed Description

Install and uninstall distributions.

Function Documentation

void free_installed ( installed_t i)

free the memory a installed_t is using

Parameters
ithe installed_t to free
void free_list_installed ( node_t n)

free the memory a list of installed_t is using

Parameters
nthe 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

Parameters
paththe directory to look in
Returns
a list of strings of absolute paths to conf files
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

Parameters
idthe id, without spaces or quotes. Note the user may have multiple installations of the same distribution
namethe human-friendly name. Note the user may have multiple installations of the same distribution
distrothe Linux distribution the ISO is
isothe ISO file to extract from
lickthe LICK directory
install_dirthe directory to install to
menuthe menu plugin
Returns
1 on success, 0 on error
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

Parameters
cba function to call for extraction progress
cb_dataextra data to call the callback with
Returns
1 on success, 0 on error
node_t* list_installed ( lickdir_t lick)

returns a list of installed distributions

Parameters
lickthe LICK directory
Returns
a list of installed_t structures. Must be freed using free_list_installed
int uninstall ( const char *  id,
lickdir_t lick,
menu_t menu 
)

uninstall a distribution

Parameters
idthe id
lickthe LICK directory
menuthe menu plugin
Returns
1 on success, 0 on error