From be860639e2afa0a5513df9004a6a8bff4848dd29 Mon Sep 17 00:00:00 2001 From: "corvid, Jorge Arellano Cid" Date: Wed, 6 May 2009 23:43:52 +0000 Subject: separate a_Capi_get_flags and a_Capi_get_flags_with_redirection --- src/cache.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/cache.c') diff --git a/src/cache.c b/src/cache.c index 38b1e672..ae8a512d 100644 --- a/src/cache.c +++ b/src/cache.c @@ -413,6 +413,15 @@ int a_Cache_open_url(void *web, CA_Callback_t Call, void *CbData) * Get cache entry status */ uint_t a_Cache_get_flags(const DilloUrl *url) +{ + CacheEntry_t *entry = Cache_entry_search(url); + return (entry ? entry->Flags : 0); +} + +/* + * Get cache entry status (following redirections). + */ +uint_t a_Cache_get_flags_with_redirection(const DilloUrl *url) { CacheEntry_t *entry = Cache_entry_search_with_redirect(url); return (entry ? entry->Flags : 0); -- cgit v1.2.3