2005-02-20 14:27:00 +00:00
|
|
|
#ifndef ETAG_H
|
|
|
|
#define ETAG_H
|
2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2009-10-11 14:31:42 +00:00
|
|
|
#include "buffer.h"
|
|
|
|
|
2017-06-22 01:41:59 +00:00
|
|
|
struct stat; /* declaration */
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2007-06-15 15:51:16 +00:00
|
|
|
typedef enum { ETAG_USE_INODE = 1, ETAG_USE_MTIME = 2, ETAG_USE_SIZE = 4 } etag_flags_t;
|
|
|
|
|
2019-03-17 21:25:07 +00:00
|
|
|
int etag_is_equal(const buffer *etag, const char *matches, int weak_ok);
|
2019-11-16 01:26:54 +00:00
|
|
|
int etag_create(buffer *etag, const struct stat *st, int flags);
|
2019-12-05 08:16:25 +00:00
|
|
|
int etag_mutate(buffer *mut, const buffer *etag);
|
2006-10-04 13:26:23 +00:00
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
#endif
|