NetSurf
Functions | Variables
font_cache.c File Reference
#include "amiga/os3support.h"
#include <string.h>
#include <proto/timer.h>
#include <proto/utility.h>
#include "utils/log.h"
#include "amiga/font.h"
#include "amiga/font_bullet.h"
#include "amiga/font_cache.h"
#include "amiga/schedule.h"
#include "amiga/object.h"
Include dependency graph for font_cache.c:

Go to the source code of this file.

Functions

static void ami_font_cache_cleanup (struct MinList *ami_font_cache_list)
 
struct ami_font_cache_nodeami_font_cache_locate (const char *font)
 
struct ami_font_cache_nodeami_font_cache_alloc_entry (const char *font)
 
void ami_font_cache_insert (struct ami_font_cache_node *nodedata, const char *font)
 
void ami_font_cache_fini (void)
 
void ami_font_cache_init (void)
 

Variables

static struct MinList * ami_font_cache_list = NULL
 

Function Documentation

◆ ami_font_cache_alloc_entry()

struct ami_font_cache_node * ami_font_cache_alloc_entry ( const char *  font)

Definition at line 159 of file font_cache.c.

References ami_font_cache_list, ami_font_cache_node::font, and ami_font_cache_node::lastused.

Referenced by ami_font_open().

Here is the caller graph for this function:

◆ ami_font_cache_cleanup()

static void ami_font_cache_cleanup ( struct MinList *  ami_font_cache_list)
static

Definition at line 85 of file font_cache.c.

References ami_font_cache_cleanup(), ami_font_cache_list, ami_schedule(), DelObject(), nsObject::dtz_Node, GetHead(), GetSucc(), IsMinListEmpty, ami_font_cache_node::lastused, NSLOG, nsObject::objstruct, and TimeVal::Seconds.

Referenced by ami_font_cache_cleanup(), ami_font_cache_fini(), and ami_font_cache_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_font_cache_fini()

void ami_font_cache_fini ( void  )

Definition at line 187 of file font_cache.c.

References ami_font_cache_cleanup(), ami_font_cache_list, ami_schedule(), FreeObjList(), and NSLOG.

Referenced by ami_font_bullet_fini().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_font_cache_init()

void ami_font_cache_init ( void  )

Definition at line 199 of file font_cache.c.

References ami_font_cache_cleanup(), ami_font_cache_list, ami_schedule(), and NewObjList().

Referenced by ami_font_bullet_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_font_cache_insert()

void ami_font_cache_insert ( struct ami_font_cache_node nodedata,
const char *  font 
)

Definition at line 175 of file font_cache.c.

References AddObject(), ami_font_bullet_close(), ami_font_cache_list, AMINS_FONT, nsObject::dtz_Node, ObjectCallback(), and nsObject::objstruct.

Referenced by ami_font_open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_font_cache_locate()

struct ami_font_cache_node * ami_font_cache_locate ( const char *  font)

Definition at line 137 of file font_cache.c.

References ami_font_cache_list, FindIName, ami_font_cache_node::font, ami_font_cache_node::lastused, NSLOG, and nsObject::objstruct.

Referenced by ami_font_open().

Here is the caller graph for this function:

Variable Documentation

◆ ami_font_cache_list

struct MinList* ami_font_cache_list = NULL
static