Stuff now compiles with nginx 0.6.9 sources. Changed enum type to plain

ngx_uint_t, so we can use nginx's config merge macros.
pull/4/head
Adrian Perez 2007-08-30 14:06:33 +02:00
parent d7129e30f9
commit 4e3d3c4816
2 changed files with 13 additions and 8 deletions

3
.todo
View File

@ -23,4 +23,7 @@
<note priority="medium" time="1187975712"> <note priority="medium" time="1187975712">
footer:cache footer:cache
</note> </note>
<note priority="medium" time="1188384488">
split big handler function into smaller pieces
</note>
</todo> </todo>

View File

@ -54,12 +54,15 @@ typedef struct {
#define NGX_HTTP_FANCYINDEX_README_DIV 0x04 #define NGX_HTTP_FANCYINDEX_README_DIV 0x04
#define NGX_HTTP_FANCYINDEX_README_IFRAME 0x08 #define NGX_HTTP_FANCYINDEX_README_IFRAME 0x08
/*
typedef enum { * NGX_HTTP_FANCYINDEX_INCLUDE_STATIC
NGX_HTTP_FANCYINDEX_INCLUDE_STATIC, /* Cache file contents on first request */ * Cache file contents on first request
NGX_HTTP_FANCYINDEX_INCLUDE_CACHED, /* Cache file contents on first request, * NGX_HTTP_FANCYINDEX_INCLUDE_CACHED
and re-read if needed afterwards */ * Cache file contents on first request,
} ngx_http_fancyindex_include_mode_t; * and re-read if needed afterwards
*/
#define NGX_HTTP_FANCYINDEX_INCLUDE_STATIC 0
#define NGX_HTTP_FANCYINDEX_INCLUDE_CACHED 1
typedef struct { typedef struct {
@ -72,8 +75,7 @@ typedef struct {
ngx_str_t readme; ngx_str_t readme;
ngx_uint_t readme_flags; ngx_uint_t readme_flags;
ngx_uint_t include_mode;
ngx_http_fancyindex_include_mode_t include_mode;
} ngx_http_fancyindex_loc_conf_t; } ngx_http_fancyindex_loc_conf_t;