[mapserver-commits] r12324 - in trunk/mapserver/mapcache: include src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:16:59 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:16:59 -0700 (Fri, 26 Aug 2011)
New Revision: 12324

Modified:
   trunk/mapserver/mapcache/include/geocache.h
   trunk/mapserver/mapcache/src/cache_disk.c
Log:
temp commit for enabling seeding by ogr feature
thomas.bonfort | 2011-03-04 09:14:09 +0100 (Fri, 04 Mar 2011)

Modified: trunk/mapserver/mapcache/include/geocache.h
===================================================================
--- trunk/mapserver/mapcache/include/geocache.h	2011-08-26 11:16:55 UTC (rev 12323)
+++ trunk/mapserver/mapcache/include/geocache.h	2011-08-26 11:16:59 UTC (rev 12324)
@@ -109,6 +109,10 @@
 /** \defgroup utility Utility */
 /** @{ */
 
+
+
+geocache_image *geocache_error_image(geocache_context *ctx, int width, int height, char *msg);
+
 /**
  * \interface geocache_context
  * \brief structure passed to most geocache functions to abstract common functions
@@ -309,6 +313,13 @@
      * \memberof geocache_cache
      */
     int (*tile_get)(geocache_context *ctx, geocache_tile * tile);
+    
+    /**
+     * delete tile from cache
+     * 
+     * \memberof geocache_cache
+     */
+    void (*tile_delete)(geocache_context *ctx, geocache_tile * tile);
 
     int (*tile_exists)(geocache_context *ctx, geocache_tile * tile);
 

Modified: trunk/mapserver/mapcache/src/cache_disk.c
===================================================================
--- trunk/mapserver/mapcache/src/cache_disk.c	2011-08-26 11:16:55 UTC (rev 12323)
+++ trunk/mapserver/mapcache/src/cache_disk.c	2011-08-26 11:16:59 UTC (rev 12324)
@@ -106,7 +106,10 @@
        return GEOCACHE_FALSE;
 }
 
+static void _geocache_cache_disk_delete(geocache_context *ctx, geocache_tile *tile) {
+}
 
+
 /**
  * \brief get file content of given tile
  * 
@@ -349,6 +352,7 @@
    cache->symlink_blank = 0;
    cache->cache.metadata = apr_table_make(ctx->pool,3);
    cache->cache.type = GEOCACHE_CACHE_DISK;
+   cache->cache.tile_delete = _geocache_cache_disk_delete;
    cache->cache.tile_get = _geocache_cache_disk_get;
    cache->cache.tile_exists = _geocache_cache_disk_has_tile;
    cache->cache.tile_set = _geocache_cache_disk_set;



More information about the mapserver-commits mailing list