split the cli and the core functionnalities

This commit is contained in:
Marc
2023-01-14 17:34:19 +01:00
parent 0c2b3afa9b
commit fce1c2912c
41 changed files with 878 additions and 751 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef __OVERLAY_H__
#define __OVERLAY_H__
typedef enum overlay_errors { SUCESS, NOT_INSTALLED, FAILURE } overlay_errors_t;
/**
* @brief Overlayfs is what make it possible to deploy to the game files without altering anything.
* it allows us to overlay multiple folder over the game files. like appling filters to an image.
* @param sources a null ended table of folder that will overlay of the game files
* @param dest the overlayed folder(the game data folder)
* @param upperdir the director that will store the changed files
* @param workdir a directory that will contains only temporary files.
* @return int error code
*/
overlay_errors_t overlay_mount(char ** sources, const char * dest, const char * upperdir, const char * workdir);
#endif