]> git.meshlink.io Git - catta/blobdiff - cache.h
* add todo list
[catta] / cache.h
diff --git a/cache.h b/cache.h
index 263d9a1039661ad516d59bf326db73f0ec319b92..e7c8e7eab65a6e7ec4ad62d5077f06f5282205ad 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -33,25 +33,23 @@ struct flxCacheEntry {
     flxTimeEvent *time_event;
 
     FLX_LLIST_FIELDS(flxCacheEntry, by_name);
-    
 };
 
 struct _flxCache {
     flxServer *server;
     
     flxInterface *interface;
-    guchar protocol;
     
     GHashTable *hash_table;
 };
 
-flxCache *flx_cache_new(flxServer *server, flxInterface *interface, guchar protocol);
+flxCache *flx_cache_new(flxServer *server, flxInterface *interface);
 void flx_cache_free(flxCache *c);
 
 flxCacheEntry *flx_cache_lookup_key(flxCache *c, flxKey *k);
 flxCacheEntry *flx_cache_lookup_record(flxCache *c, flxRecord *r);
 
-flxCacheEntry *flx_cache_update(flxCache *c, flxRecord *r, gboolean unique, const flxAddress *a);
+void flx_cache_update(flxCache *c, flxRecord *r, gboolean unique, const flxAddress *a);
 
 void flx_cache_drop_key(flxCache *c, flxKey *k);
 void flx_cache_drop_record(flxCache *c,  flxRecord *r);