summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-16 21:28:13 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-16 21:28:13 +0200
commitc238be7c2ad11e23304b6d84d173ef54fdfec587 (patch)
tree3aa0e28799d42c559f20b0622d20a6dae84862e7 /pgsql.h
parentdfb2fa888c347f343423673b7c8bae058b85e3b3 (diff)
downloadpgfuse-c238be7c2ad11e23304b6d84d173ef54fdfec587.tar.gz
pgfuse-c238be7c2ad11e23304b6d84d173ef54fdfec587.tar.bz2
started to add timestamps
Diffstat (limited to 'pgsql.h')
-rw-r--r--pgsql.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pgsql.h b/pgsql.h
index 53474a8..45f4fc5 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -19,6 +19,7 @@
#define PGSQL_H
#include <sys/types.h> /* size_t */
+#include <sys/time.h> /* for struct timespec */
#include <sys/stat.h> /* mode_t */
#include <fuse.h> /* for user-land filesystem */
@@ -30,6 +31,9 @@ typedef struct PgMeta {
mode_t mode; /* type and permissions of file/directory */
uid_t uid; /* owner of the file/directory */
gid_t gid; /* group owner of the file/directory */
+ struct timespec ctime; /* creation time */
+ struct timespec mtime; /* last modification time */
+ struct timespec atime; /* last access time */
} PgMeta;
int psql_get_meta( PGconn *conn, const char *path, PgMeta *meta );