cache

cache — Manage pages content files work.

Functions

Description

Functions

uc_cache_change_id ()

void
uc_cache_change_id (const guint32 old,
                    const guint32 new);

Replace "old" with "new" (swap cached files). Mainly used after rescanning a link.

Parameters

old

Old UCLinkProperties node id.

 

new

New UCLinkProperties node id.

 

uc_cache_get_source ()

gchar *
uc_cache_get_source (const guint32 id,
                     gsize *length);

Retreive the source page in cache for a link.

Parameters

id

UCLinkProperties node id of the wanted link content.

 

length

Set this argument with the size of the returned buffer.

 

Returns

The source code of the given UCLinkProperties node id.


uc_cache_append_source ()

void
uc_cache_append_source (const guint32 id,
                        gchar *src,
                        const gsize length);

Put a source page in the cache.

Parameters

id

UCLinkProperties node id of the element to put in cache.

 

src

Content to work with.

 

length

Lenght of the given buffer.

 

Types and Values