aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-28 14:02:00 +0100
committerMax Kellermann <max@duempel.org>2009-02-28 14:02:00 +0100
commit2aebbf84606fa6fa5a014ac288eef9bc5d63402e (patch)
tree84d7e8071fe6e8f76e587e31d470d2a2b6b1b686 /src/directory.h
parent3d6e6416e50a05d937ae770f255b53aa2dc5201f (diff)
downloadmpd-2aebbf84606fa6fa5a014ac288eef9bc5d63402e.tar.gz
mpd-2aebbf84606fa6fa5a014ac288eef9bc5d63402e.tar.xz
mpd-2aebbf84606fa6fa5a014ac288eef9bc5d63402e.zip
directory: added "mtime" property
Remember the modification time of each directory. This is important for archives (which are virtual directories right now), but may also be useful for an automatic update mechanism.
Diffstat (limited to '')
-rw-r--r--src/directory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/directory.h b/src/directory.h
index 7ffb87d5e..9321e9530 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -33,6 +33,7 @@ struct directory {
struct dirvec children;
struct songvec songs;
struct directory *parent;
+ time_t mtime;
ino_t inode;
dev_t device;
unsigned stat; /* not needed if ino_t == dev_t == 0 is impossible */