aboutsummaryrefslogtreecommitdiff
path: root/src/fileutils.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-07 07:38:59 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-07 07:38:59 +0200
commit48e757baffbf75bc8a1e4171ad94c27d7356cafa (patch)
tree91cad8a939725bd3a52bf2bc726620d164d64a57 /src/fileutils.h
parent52c63554190b8421c6f2db72d490f50364a2e23d (diff)
Migrate mangadex to new api, remove .in_progress files in tracked dir if they are old
Diffstat (limited to 'src/fileutils.h')
-rw-r--r--src/fileutils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileutils.h b/src/fileutils.h
index 979f656..e243a89 100644
--- a/src/fileutils.h
+++ b/src/fileutils.h
@@ -2,10 +2,13 @@
#define FILEUTILS_H
#include <stddef.h>
+#include <time.h>
const char* get_home_dir();
/* Returns 0 on success */
int file_get_content(const char *filepath, char **data, long *size);
+/* Returns 0 on success */
+int file_get_last_modified_time(const char *path, time_t *last_modified);
/* Returns 0 on success (if the directories are created or if the directories already exists) */
int create_directory_recursive(char *path);
/* Returns 0 on success */