Implement 'find similar page'. Fix some small bug
[httpd-crcsyncproxy.git] / crccache / mod_crccache_client_find_similar.h
blob2448693634dee16e1d94af5486531aef1f281229
1 /*
2 * mod_crccache_client.h
4 * Created on: 15/03/2009
5 * Author: awulms
6 */
7 #ifndef MOD_CRCCACHE_CLIENT_FIND_SIMILAR_H
8 #define MOD_CRCCACHE_CLIENT_FIND_SIMILAR_H
10 #include "cache/cache.h"
11 #include <apr_pools.h>
12 #include <apr_shm.h>
13 #include <apr_rmm.h>
14 #include <apr_global_mutex.h>
15 #include <apr_hash.h>
16 #include <http_config.h>
18 typedef struct similar_page_cache_s similar_page_cache_t;
20 similar_page_cache_t *create_similar_page_cache(apr_pool_t *p);
22 const char *crccache_client_fsp_set_cache_bytes(cmd_parms *parms, void *in_struct_ptr,
23 const char *arg, similar_page_cache_t *conf);
25 int crccache_client_fsp_post_config_per_virtual_host(apr_pool_t *p, apr_pool_t *plog,
26 apr_pool_t *ptemp, server_rec *s, similar_page_cache_t *conf, const char *cache_root);
28 void crccache_client_fsp_child_init_per_virtual_host(apr_pool_t *p, server_rec *s, similar_page_cache_t *conf);
30 apr_status_t find_similar_page(disk_cache_object_t *dobj, request_rec *r, similar_page_cache_t *sp_cache);
32 void update_or_add_similar_page(disk_cache_object_t *dobj, request_rec *r, similar_page_cache_t *sp_cache);
34 #endif /* MOD_CRCCACHE_CLIENT_FIND_SIMILAR_H */