fedir
e48cbc62f1
Now source files handling is delegated to functions defined in `sourcefs.c` file. By encapsulating methods for managing the underlying source files structure we ensure that all code changes to the source file protection strategy will be localized to `sourcefs.c` file. Also changed Makefile to use more sane way of handling options and build flags.
15 lines
252 B
C
15 lines
252 B
C
|
|
|
|
#ifndef SOURCEFS_H
|
|
#define SOURCEFS_H
|
|
|
|
/**
|
|
* Initializes the source file handling.
|
|
*
|
|
* @param root_path The root of the source files folder.
|
|
* @return 0 on success, 1 on failure.
|
|
*/
|
|
int source_init(const char *root_path);
|
|
|
|
#endif // !SOURCEFS_H
|