summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-15 23:57:50 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-15 23:57:50 -0700
commitf76ba81c317fdca5f549bcb044d62861609fe6d1 (patch)
tree0dc9bed8def723181a9655c27886fcc27dccb5d3 /util.h
parente913f115a678bf2eb0da3a0c6b2ab45830f79028 (diff)
Save state menu WIP
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index b9d271e..7fd26b6 100644
--- a/util.h
+++ b/util.h
@@ -2,6 +2,7 @@
#define UTIL_H_
#include <stdio.h>
+#include <time.h>
typedef struct {
char *name;
@@ -40,6 +41,8 @@ char *read_bundled_file(char *name, long *sizeret);
dir_entry *get_dir_list(char *path, size_t *numret);
//Frees a dir list returned by get_dir_list
void free_dir_list(dir_entry *list, size_t numentries);
+//Gets the modification time of a file
+time_t get_modification_time(char *path);
//Recusrively creates a directory if it does not exist
int ensure_dir_exists(char *path);
//Returns the contents of a symlink in a newly allocated string