summaryrefslogtreecommitdiff
path: root/tbdiff/tbdiff-stat.h
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-06-02 15:51:02 +0100
committerBen Brewer <ben.brewer@codethink.co.uk>2014-06-02 15:52:15 +0100
commit20d5fb340c6ad1e7b16c6dc17e3f6c364a5a5515 (patch)
tree3b8966f7eaa6855c0718b52437a374b710a51eca /tbdiff/tbdiff-stat.h
parent485e76fea076b2a5f0efeab3ac7f98037f4e00c0 (diff)
parentfb454c327097dda283c35a911fef141382aa383f (diff)
downloadtbdiff-20d5fb340c6ad1e7b16c6dc17e3f6c364a5a5515.tar.gz
Merge branch 'baserock/benbrewer/overhaul-v2'
Reviewed-by: Richard Maw Reviewed-by: Lars Wirzenius
Diffstat (limited to 'tbdiff/tbdiff-stat.h')
-rw-r--r--tbdiff/tbdiff-stat.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/tbdiff/tbdiff-stat.h b/tbdiff/tbdiff-stat.h
index d23cc80..22da466 100644
--- a/tbdiff/tbdiff-stat.h
+++ b/tbdiff/tbdiff-stat.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2012 Codethink Ltd.
+ * Copyright (C) 2011-2014 Codethink Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 as
@@ -37,17 +37,19 @@ typedef enum {
TBD_STAT_TYPE_SOCKET = 's'
} tbd_stat_type_e;
-typedef struct {
- void* parent;
+typedef struct tbd_stat_s tbd_stat_t;
+
+struct tbd_stat_s {
+ tbd_stat_t* parent;
char* name;
tbd_stat_type_e type;
time_t mtime;
- uint32_t size; // Count for directory.
- uid_t uid;
- gid_t gid;
- mode_t mode;
+ uint32_t size; /* Count for directory. */
+ uid_t uid;
+ gid_t gid;
+ mode_t mode;
uint32_t rdev;
-} tbd_stat_t;
+};
extern tbd_stat_t* tbd_stat(const char *path);
extern void tbd_stat_free(tbd_stat_t *file);