File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / etag.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:47 2013 UTC (10 years, 8 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

#ifndef ETAG_H
#define ETAG_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 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>