NetSurf
Data Fields
llcache_event Struct Reference

Low-level cache events. More...

#include <llcache.h>

Collaboration diagram for llcache_event:
[legend]

Data Fields

llcache_event_type type
 Type of event. More...
 
union {
   struct {
      const uint8_t *   buf
 Buffer of data. More...
 
      size_t   len
 Byte length of buffer. More...
 
   }   data
 Received data. More...
 
   struct {
      nserror   code
 The error code. More...
 
      const char *   msg
 Error message. More...
 
   }   error
 
   const char *   progress_msg
 Progress message. More...
 
   struct {
      nsurl *   from
 Redirect origin. More...
 
      nsurl *   to
 Redirect target. More...
 
   }   redirect
 Fetch URL redirect occured. More...
 
   const struct cert_chain *   chain
 Certificate chain. More...
 
data
 Event data. More...
 

Detailed Description

Low-level cache events.

Lifetime of contained information is only for the duration of the event and must be copied if it is desirable to retain.

Definition at line 85 of file llcache.h.

Field Documentation

◆ buf

const uint8_t* llcache_event::buf

Buffer of data.

Definition at line 89 of file llcache.h.

Referenced by content_llcache_callback(), download_callback(), and hlcache_llcache_callback().

◆ chain

const struct cert_chain* llcache_event::chain

Certificate chain.

Definition at line 101 of file llcache.h.

◆ code

nserror llcache_event::code

The error code.

Definition at line 93 of file llcache.h.

◆  [1/2]

struct { ... } llcache_event::data

◆  [2/2]

union { ... } llcache_event::data

Event data.

◆ 

struct { ... } llcache_event::error

Referenced by download_callback().

◆ from

nsurl* llcache_event::from

Redirect origin.

Definition at line 98 of file llcache.h.

◆ len

size_t llcache_event::len

Byte length of buffer.

Definition at line 90 of file llcache.h.

Referenced by content_llcache_callback(), download_callback(), and hlcache_llcache_callback().

◆ msg

const char* llcache_event::msg

Error message.

Definition at line 94 of file llcache.h.

Referenced by download_callback().

◆ progress_msg

const char* llcache_event::progress_msg

Progress message.

Definition at line 96 of file llcache.h.

Referenced by content_llcache_callback().

◆ 

struct { ... } llcache_event::redirect

Fetch URL redirect occured.

◆ to

nsurl* llcache_event::to

Redirect target.

Definition at line 99 of file llcache.h.

◆ type

llcache_event_type llcache_event::type

Type of event.

Definition at line 86 of file llcache.h.

Referenced by content_llcache_callback(), download_callback(), and hlcache_llcache_callback().


The documentation for this struct was generated from the following file: