NetSurf
|
#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"
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_node * | ami_font_cache_locate (const char *font) |
struct ami_font_cache_node * | ami_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 |
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().
|
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().
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().
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().
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().
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().
|
static |
Definition at line 42 of file font_cache.c.
Referenced by ami_font_cache_alloc_entry(), ami_font_cache_cleanup(), ami_font_cache_fini(), ami_font_cache_init(), ami_font_cache_insert(), and ami_font_cache_locate().