Adder the type alias error_t and refactored the code to use it. also extracted archive function from install.c to archives.c
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef __ARCHIVES_H__
|
||||
#define __ARCHIVES_H__
|
||||
|
||||
//all of these function will make every file into lowercase
|
||||
|
||||
/**
|
||||
* @brief Execute the unzip command
|
||||
* @param path path to archive
|
||||
* @param outdir output director
|
||||
* @return int return code
|
||||
*/
|
||||
int unzip(char * path, char * outdir);
|
||||
|
||||
/**
|
||||
* @brief Execute the unrar command
|
||||
* @param path path to archive
|
||||
* @param outdir output director
|
||||
* @return int return code
|
||||
*/
|
||||
int unrar(char * path, char * outdir);
|
||||
|
||||
/**
|
||||
* @brief Execute the 7z command
|
||||
* @param path path to archive
|
||||
* @param outdir output director
|
||||
* @return int return code
|
||||
*/
|
||||
int un7z(char * path, const char * outdir);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user