/**
* champlain_cache_get_default:
*
- * Return the #ChamplainCache singleton
+ * Returns the #ChamplainCache singleton
*
* Since: 0.4
*/
* champlain_cache_update_tile:
* @self: the #ChamplainCache
* @tile: the #ChamplainTile to fill
- * @size: the filesize on the disk
+ * @filesize: the filesize on the disk
*
* Update the tile's information in the cache such as Etag and filesize.
* Also increase the tile's popularity.
void
champlain_cache_update_tile (ChamplainCache *self,
ChamplainTile *tile,
- guint size)
+ guint filesize)
{
g_return_if_fail (CHAMPLAIN_CACHE (self));
gchar *query, *error = NULL;
query = g_strdup_printf ("REPLACE INTO tiles (filename, etag, size) VALUES ('%s', '%s', %d);",
champlain_tile_get_filename (tile),
champlain_tile_get_etag (tile),
- size);
+ filesize);
sqlite3_exec (priv->data, query, NULL, NULL, &error);
if (error != NULL)
{
<xi:include href="xml/champlain-map-source.xml"/>
<xi:include href="xml/champlain-network-map-source.xml"/>
<xi:include href="xml/champlain-tile.xml"/>
- <xi:include href="xml/champlain-zoom-level.xml"/>
+ <xi:include href="xml/champlain-cache.xml"/>
</chapter>
<index>
<title>Index</title>
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY version SYSTEM "version.xml">
-]>
-<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
- <bookinfo>
- <title>libchamplain-gtk Reference Manual</title>
- <releaseinfo>
- for libchamplain-gtk &version;
- The latest version of this documentation can be found on-line at
- <ulink role="online-location" url="http://blog.pierlux.com/projects/libchamplain/">http://blog.pierlux.com/projects/libchamplain/</ulink>.
- </releaseinfo>
- </bookinfo>
-
- <chapter>
- <title>I. API Reference</title>
- <xi:include href="xml/champlainviewembed.xml"/>
- </chapter>
-</book>
+++ /dev/null
-<SECTION>
-<FILE>champlainviewembed</FILE>
-<TITLE>ChamplainViewEmbed</TITLE>
-champlain_view_embed_new
-champlain_view_embed_get_view
-<SUBSECTION Standard>
-CHAMPLAIN_VIEW_EMBED
-CHAMPLAIN_IS_VIEW_EMBED
-CHAMPLAIN_TYPE_VIEW_EMBED
-champlain_view_embed_get_type
-CHAMPLAIN_VIEW_EMBED_CLASS
-CHAMPLAIN_IS_VIEW_EMBED_CLASS
-CHAMPLAIN_VIEW_EMBED_GET_CLASS
-</SECTION>
-
-<SECTION>
-<FILE>champlain-gtk-marshal</FILE>
-</SECTION>
-
ChamplainState
</SECTION>
+<SECTION>
+<FILE>champlain-cache</FILE>
+ChamplainCache
+ChamplainCacheClass
+champlain_cache_fill_tile
+champlain_cache_get_default
+champlain_cache_get_size_limit
+champlain_cache_get_type
+champlain_cache_purge
+champlain_cache_purge_on_idle
+champlain_cache_set_size_limit
+champlain_cache_tile_is_expired
+champlain_cache_update_tile
+</SECTION>
+
#include <champlain.h>
champlain_view_get_type
-champlain_marker_get_type
champlain_base_marker_get_type
+champlain_marker_get_type
champlain_layer_get_type
champlain_map_source_get_type
champlain_network_map_source_get_type
-champlain_zoom_level_get_type
champlain_tile_get_type
+champlain_cache_get_type