File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / etag.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 7 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

#ifndef ETAG_H
#define ETAG_H
#include "first.h"

#include "buffer.h"

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>