diff options
author | David Härdeman <david@hardeman.nu> | 2007-05-18 21:54:15 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2007-05-18 21:54:15 +0200 |
commit | 25d2bb605809d23b691ec88a138bf7da9c7ee20b (patch) | |
tree | 0da1b53a4859fe8060f19dbbceb407a1701eb877 /metastore.h | |
parent | ce12a04ba0dc092ea15164004264845a87b758e7 (diff) |
Initial project checkin
Diffstat (limited to 'metastore.h')
-rw-r--r-- | metastore.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/metastore.h b/metastore.h new file mode 100644 index 0000000..1ccdb54 --- /dev/null +++ b/metastore.h @@ -0,0 +1,40 @@ +#define SIGNATURE "MeTaSt00r3" +#define SIGNATURELEN 10 +#define VERSION "\0\0\0\0\0\0\0\0" +#define VERSIONLEN 8 +#define METAFILE "./.metadata" + +#define MSG_NORMAL 0 +#define MSG_DEBUG 1 +#define MSG_QUIET -1 +#define MSG_CRITICAL -2 + +#define ACTION_DIFF 0x01 +#define ACTION_SAVE 0x02 +#define ACTION_APPLY 0x04 +#define ACTION_HELP 0x08 + +#define DIFF_NONE 0x00 +#define DIFF_OWNER 0x01 +#define DIFF_GROUP 0x02 +#define DIFF_MODE 0x04 +#define DIFF_TYPE 0x08 +#define DIFF_MTIME 0x10 +#define DIFF_XATTR 0x20 +#define DIFF_ADDED 0x40 +#define DIFF_DELE 0x80 + +struct metaentry { + struct metaentry *next; + char *path; + char *owner; + char *group; + mode_t mode; + time_t mtime; + long mtimensec; + unsigned int xattrs; + char **xattr_names; + ssize_t *xattr_lvalues; + char **xattr_values; +}; + |