32 lines
542 B
C
32 lines
542 B
C
|
#ifndef INSTALL_H
|
||
|
#define INSTALL_H
|
||
|
|
||
|
/**
|
||
|
* Installs mod
|
||
|
* @param mod name of mod to be installed
|
||
|
* @return 1 if error
|
||
|
* 0 otherwise
|
||
|
*/
|
||
|
int
|
||
|
install(const char *mod);
|
||
|
|
||
|
/**
|
||
|
* Backup a file, only if the file does not yet have a backup.
|
||
|
* @param file Absolute path to file
|
||
|
* @return 1 if error
|
||
|
* 0 otherwise
|
||
|
*/
|
||
|
int
|
||
|
backup(const char *file);
|
||
|
|
||
|
/**
|
||
|
* Restore a file, only if the file has a backup.
|
||
|
* @param file Absolute path to file
|
||
|
* @return 1 if error
|
||
|
* 0 otherwise
|
||
|
*/
|
||
|
int
|
||
|
restore(const char *file);
|
||
|
|
||
|
#endif
|