summaryrefslogtreecommitdiff
path: root/data/lighttpd/lighttpd-1.4.53/src/etag.h
blob: cf0e38a98551f8c848eb9c19dc7888a7a36f04e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef ETAG_H
#define ETAG_H
#include "first.h"

#include "buffer.h"

struct stat;            /* declaration */

typedef enum { ETAG_USE_INODE = 1, ETAG_USE_MTIME = 2, ETAG_USE_SIZE = 4 } etag_flags_t;

int etag_is_equal(buffer *etag, const char *matches, int weak_ok);
int etag_create(buffer *etag, struct stat *st, etag_flags_t flags);
int etag_mutate(buffer *mut, buffer *etag);


#endif