Include dependency graph for alternatives-update.cpp:
Typedefs | |
typedef std::map< std::string, bool > | bool_hash |
Enumerations | |
enum | command_type { UNKNOWN, OBSOLETE, IGNORE } |
Functions | |
bool | dir_in_alt (const char *linkname) |
bool | relink (const char *points_to, const char *linkname, bool is_update=false) |
void | remove_alternative (const char *int_link, const char *ext_link) |
bool | update_alternative (const char *link_dir, const char *int_link, const char *ext_link, const char *points_to) |
bool | update_remove (const std::string &linkdir) |
bool | setup_new (const std::string &linkdir) |
void | remove_compat (const std::string &linkdir, const char *oldname) |
void | usage (int retcode) |
int | main (int argc, char *argv[]) |
Variables | |
AltStorage * | alts = 0 |
bool | verbose = false |
bool_hash | done |
|
hash, to process altarnatives only once. key -> alternative name, value -> present flag |
|
type of the command |
|
checks if directory is in alternatives too
|
|
Main function |
|
check where link points to and relink if nesessary
|
|
remove symlinks for removed alternative
|
|
remove old style alternatives symlink, we will remove only if symlink corresponds to some new existing alternative
|
|
setup new alternative, create both internal and external symlinks
|
|
update alternative symlink
|
|
walk throw directory with internal symlinks, remove, or update some of them
|
|
help screen for command-line utility
|
|
Main alternatives storage |
|
list of already proceed alternatives |
|
verbose program's output |