summaryrefslogtreecommitdiff
path: root/src/dicache.h
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-01 10:06:48 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-01 10:06:48 -0300
commit9783b0f015c4437f1c3c457caacaecadc06ae644 (patch)
tree84c3ba69d48f3840799e8096077ba03778254108 /src/dicache.h
parenta242c0021263fc48fa57d1e4c1a874713745f590 (diff)
imported patch dicache-cleanup5
Diffstat (limited to 'src/dicache.h')
-rw-r--r--src/dicache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dicache.h b/src/dicache.h
index 4c4b93d6..51d67de2 100644
--- a/src/dicache.h
+++ b/src/dicache.h
@@ -10,6 +10,10 @@ extern "C" {
#include "image.hh"
#include "cache.h"
+/* Symbolic name to request the last version of an image */
+#define DIC_Last -1
+
+
/* These will reflect the entry's "state" */
typedef enum {
DIC_Empty, /* Just created the entry */
@@ -47,7 +51,7 @@ struct _DICacheEntry {
void a_Dicache_init (void);
-DICacheEntry *a_Dicache_get_entry(const DilloUrl *Url);
+DICacheEntry *a_Dicache_get_entry(const DilloUrl *Url, int version);
DICacheEntry *a_Dicache_add_entry(const DilloUrl *Url);
void a_Dicache_callback(int Op, CacheClient_t *Client);