ELinks 0.18.0
Data Structures | Typedefs | Enumerations | Functions
cache.h File Reference
#include "main/object.h"
#include "util/lists.h"
#include "util/time.h"
Include dependency graph for cache.h:

Data Structures

struct  cache_entry
 
struct  fragment
 

Typedefs

typedef int cache_mode_T
 

Enumerations

enum  cache_mode {
  CACHE_MODE_INCREMENT = -1 , CACHE_MODE_ALWAYS , CACHE_MODE_NORMAL , CACHE_MODE_CHECK_IF_MODIFIED ,
  CACHE_MODE_FORCE_RELOAD , CACHE_MODE_NEVER
}
 

Functions

struct cache_entry * find_in_cache (struct uri *uri)
 
struct cache_entry * get_cache_entry (struct uri *uri)
 
struct cache_entry * get_validated_cache_entry (struct uri *uri, cache_mode_T cache_mode)
 
int cache_entry_is_valid (struct cache_entry *cached)
 
struct cache_entry * follow_cached_redirects (struct cache_entry *cached)
 
struct cache_entry * get_redirected_cache_entry (struct uri *uri)
 
int add_fragment (struct cache_entry *cached, off_t offset, const char *data, ssize_t length)
 
struct fragment * get_cache_fragment (struct cache_entry *cached)
 
void normalize_cache_entry (struct cache_entry *cached, off_t length)
 
void free_entry_to (struct cache_entry *cached, off_t offset)
 
void delete_entry_content (struct cache_entry *cached)
 
void delete_cache_entry (struct cache_entry *cached)
 
struct uri * redirect_cache (struct cache_entry *cached, const char *location, int get, int incomplete)
 
void garbage_collection (int whole)
 
unsigned longlong get_cache_size (void)
 
int get_cache_entry_count (void)
 
int get_cache_entry_used_count (void)
 
int get_cache_entry_loading_count (void)
 
int validate_cache_integrity (struct cache_entry *cached, const char *integrity)
 

Typedef Documentation

◆ cache_mode_T

typedef int cache_mode_T

Enumeration Type Documentation

◆ cache_mode

enum cache_mode
Enumerator
CACHE_MODE_INCREMENT 
CACHE_MODE_ALWAYS 
CACHE_MODE_NORMAL 
CACHE_MODE_CHECK_IF_MODIFIED 
CACHE_MODE_FORCE_RELOAD 
CACHE_MODE_NEVER 

Function Documentation

◆ add_fragment()

int add_fragment ( struct cache_entry *  cached,
off_t  offset,
const char *  data,
ssize_t  length 
)

◆ cache_entry_is_valid()

int cache_entry_is_valid ( struct cache_entry *  cached)

◆ delete_cache_entry()

void delete_cache_entry ( struct cache_entry *  cached)

◆ delete_entry_content()

void delete_entry_content ( struct cache_entry *  cached)

◆ find_in_cache()

struct cache_entry * find_in_cache ( struct uri *  uri)

◆ follow_cached_redirects()

struct cache_entry * follow_cached_redirects ( struct cache_entry *  cached)

◆ free_entry_to()

void free_entry_to ( struct cache_entry *  cached,
off_t  offset 
)

◆ garbage_collection()

void garbage_collection ( int  whole)

◆ get_cache_entry()

struct cache_entry * get_cache_entry ( struct uri *  uri)

◆ get_cache_entry_count()

int get_cache_entry_count ( void  )

◆ get_cache_entry_loading_count()

int get_cache_entry_loading_count ( void  )

◆ get_cache_entry_used_count()

int get_cache_entry_used_count ( void  )

◆ get_cache_fragment()

struct fragment * get_cache_fragment ( struct cache_entry *  cached)

◆ get_cache_size()

unsigned longlong get_cache_size ( void  )

◆ get_redirected_cache_entry()

struct cache_entry * get_redirected_cache_entry ( struct uri *  uri)

◆ get_validated_cache_entry()

struct cache_entry * get_validated_cache_entry ( struct uri *  uri,
cache_mode_T  cache_mode 
)

◆ normalize_cache_entry()

void normalize_cache_entry ( struct cache_entry *  cached,
off_t  length 
)

◆ redirect_cache()

struct uri * redirect_cache ( struct cache_entry *  cached,
const char *  location,
int  get,
int  incomplete 
)

◆ validate_cache_integrity()

int validate_cache_integrity ( struct cache_entry *  cached,
const char *  integrity 
)