1 #ifndef ETAG_H
2 #define ETAG_H
3 
4 #include "buffer.h"
5 
6 #include <sys/types.h>
7 #include <sys/stat.h>
8 #include <unistd.h>
9 
10 typedef enum { ETAG_USE_INODE = 1, ETAG_USE_MTIME = 2, ETAG_USE_SIZE = 4 } etag_flags_t;
11 
12 int etag_is_equal(buffer *etag, const char *matches);
13 int etag_create(buffer *etag, struct stat *st, etag_flags_t flags);
14 int etag_mutate(buffer *mut, buffer *etag);
15 
16 
17 #endif
18