[autobuild] allow sendfile() in cross-compile (fixes #2836)
[lighttpd.git] / src / etag.h
blob428ea131c24c2519966be1e1d0d8c2bf34a4e9b6
1 #ifndef ETAG_H
2 #define ETAG_H
3 #include "first.h"
5 #include "buffer.h"
7 #include <sys/types.h>
8 struct stat; /* declaration */
10 typedef enum { ETAG_USE_INODE = 1, ETAG_USE_MTIME = 2, ETAG_USE_SIZE = 4 } etag_flags_t;
12 int etag_is_equal(buffer *etag, const char *matches, int weak_ok);
13 int etag_create(buffer *etag, struct stat *st, etag_flags_t flags);
14 int etag_mutate(buffer *mut, buffer *etag);
17 #endif