2008-08-08 16:51:27 +00:00
|
|
|
#ifndef _LIGHTTPD_PLUGIN_CORE_H_
|
|
|
|
#define _LIGHTTPD_PLUGIN_CORE_H_
|
|
|
|
|
2008-11-16 20:33:53 +00:00
|
|
|
#include <lighttpd/base.h>
|
2008-10-28 21:11:50 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
typedef enum { LI_ETAG_USE_INODE = 1, LI_ETAG_USE_MTIME = 2, LI_ETAG_USE_SIZE = 4 } liETagFlags;
|
2009-03-17 13:21:20 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
enum liCoreOptions {
|
|
|
|
LI_CORE_OPTION_DEBUG_REQUEST_HANDLING = 0,
|
2008-08-08 16:51:27 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
LI_CORE_OPTION_LOG_TS_FORMAT,
|
|
|
|
LI_CORE_OPTION_LOG,
|
2008-08-13 17:57:19 +00:00
|
|
|
|
2009-10-08 11:37:53 +00:00
|
|
|
LI_CORE_OPTION_STATIC_FILE_EXCLUDE_EXTENSIONS,
|
2009-10-07 20:49:40 +00:00
|
|
|
LI_CORE_OPTION_STATIC_RANGE_REQUESTS,
|
2008-08-15 15:17:04 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
LI_CORE_OPTION_SERVER_NAME,
|
|
|
|
LI_CORE_OPTION_SERVER_TAG,
|
|
|
|
LI_CORE_OPTION_MAX_KEEP_ALIVE_IDLE,
|
|
|
|
LI_CORE_OPTION_MAX_KEEP_ALIVE_REQUESTS,
|
2008-10-02 19:46:06 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
LI_CORE_OPTION_MIME_TYPES,
|
2008-10-02 22:52:46 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
LI_CORE_OPTION_ETAG_FLAGS
|
2008-08-08 16:51:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* the core plugin always has base index 0, as it is the first plugin loaded */
|
2008-10-25 12:53:57 +00:00
|
|
|
#define CORE_OPTION(idx) _CORE_OPTION(vr, idx)
|
|
|
|
#define _CORE_OPTION(vr, idx) _OPTION_ABS(vr, idx)
|
2008-08-08 16:51:27 +00:00
|
|
|
|
2009-10-09 13:38:12 +00:00
|
|
|
LI_API void li_plugin_core_init(liServer *srv, liPlugin *p);
|
|
|
|
|
2008-08-08 16:51:27 +00:00
|
|
|
#endif
|