summaryrefslogtreecommitdiff
path: root/file/file.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-28 04:02:26 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-28 04:02:26 -0300
commit3f81407dd9a82fddbe130f660e8760e22fe6d287 (patch)
treec7c754f97952eedfa4a943abf74e13710ca67269 /file/file.h
parent812bd145ddb39f6fbab53196652ad47520beffd2 (diff)
downloadeeshow-3f81407dd9a82fddbe130f660e8760e22fe6d287.tar.gz
eeshow-3f81407dd9a82fddbe130f660e8760e22fe6d287.tar.bz2
eeshow-3f81407dd9a82fddbe130f660e8760e22fe6d287.zip
file/: retrieve file mtime or commit time
Diffstat (limited to 'file/file.h')
-rw-r--r--file/file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/file/file.h b/file/file.h
index ff7ea65..d4aa7f7 100644
--- a/file/file.h
+++ b/file/file.h
@@ -15,6 +15,7 @@
#include <stdbool.h>
#include <stdio.h>
+#include <time.h>
struct file {
@@ -22,6 +23,7 @@ struct file {
void *vcs; /* VCS descriptor or NULL */
const char *name; /* name/designator given to file_open */
unsigned lineno;
+ time_t mtime; /* modification time */
const struct file *related; /* NULL if not related to anything */
};