diff options
author | corvid, Jorge Arellano Cid <devnull@localhost> | 2009-05-06 23:43:52 +0000 |
---|---|---|
committer | corvid, Jorge Arellano Cid <devnull@localhost> | 2009-05-06 23:43:52 +0000 |
commit | be860639e2afa0a5513df9004a6a8bff4848dd29 (patch) | |
tree | 5fe7f979fbdca8df9896564126483e8c7270a57e /src/cache.c | |
parent | bc5154c07731b1c415ec2cbf897bef6a889b9293 (diff) |
separate a_Capi_get_flags and a_Capi_get_flags_with_redirection
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c index 38b1e672..ae8a512d 100644 --- a/src/cache.c +++ b/src/cache.c @@ -414,6 +414,15 @@ int a_Cache_open_url(void *web, CA_Callback_t Call, void *CbData) */ 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); } |