Main Page   Compound List   File List   Compound Members   File Members  

alternatives.cpp File Reference

Include dependency graph for alternatives.cpp:

Include dependency graph

Enumerations

enum  action_type { UNKNOWN, INSTALL, REMOVE }

Functions

void install_alternative (const std::string &auto_link, const std::string &packages_link)
void remove_alternative (const std::string &auto_link, const std::string &packages_link)
void usage (int retcode)
void register_alternative (action_type action, const AltConfig &conf, const std::string &name)
int main (int argc, char *argv[])

Variables

bool verbose = false

Enumeration Type Documentation

enum action_type
 

possible actions

Enumeration values:
UNKNOWN  unknown, for error messages
INSTALL  register alternatives config
REMOVE  unregister config


Function Documentation

void install_alternative const std::string &    auto_link,
const std::string &    packages_link
 

register alternatives config

Parameters:
auto_link  link in directory with active symlinks
packages_link  path to config

int main int    argc,
char *    argv[]
 

void register_alternative action_type    action,
const AltConfig   conf,
const std::string &    name
 

wrapper between alternative registration/unregistration

Parameters:
action  action type
conf  main alternatives config
name  of alternatives config file

void remove_alternative const std::string &    auto_link,
const std::string &    packages_link
 

unregister alternatives config

Parameters:
auto_link  link in directory with active symlinks
packages_link  path to config

void usage int    retcode
 

help screen for command-line utility

Parameters:
retcode  exit code, possible values EXIT_SUCCESS, EXIT_FAILURE


Variable Documentation

bool verbose = false
 

verbose program's output


Generated on Thu Jun 26 15:28:37 2003 for Alternatives by doxygen1.2.18