1 #ifndef _ENTRY_H
2 #define _ENTRY_H
3 
4 #include <fcntl.h>
5 #include <sys/stat.h>
6 
7 #define PLUS	    1
8 #define MINUS	    0
9 
10 /* almost the whole stat structure... */
11 struct rdup {
12 	guint plusmin:1;        /* '-' remove, '+' add. Added because of rdup-tr */
13 	guint f_lnk:1;		/* 0, 1 if hardlink */
14         gchar *f_name;		/* filename or link src iff link */
15 	gchar *f_target;	/* in case of a link this holds the target name */
16         size_t f_name_size;	/* size of filename */
17         uid_t f_uid;		/* uid */
18 	gchar *f_user;		/* username */
19         gid_t f_gid;		/* gid */
20 	gchar *f_group;		/* groupname */
21         mode_t f_mode;		/* mode bits */
22         time_t f_ctime;		/* change time of the inode */
23         time_t f_mtime;		/* modification time of the inode */
24         time_t f_atime;		/* modification time of the inode */
25         off_t f_size;		/* file size */
26 	dev_t f_dev;		/* ID of device containing file */
27 	dev_t f_rdev;		/* device ID (if special file), we use this for major, minor */
28 	ino_t f_ino;		/* inode number */
29 };
30 
31 #endif  /* _ENTRY_H */
32