NetSurf
|
#include "amiga/os3support.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <proto/exec.h>
#include <exec/lists.h>
#include <exec/nodes.h>
#include "amiga/memory.h"
#include "amiga/object.h"
Go to the source code of this file.
Macros | |
#define | nsList List |
#define | NewnsList NewList |
Functions | |
bool | ami_object_init (void) |
Initialisation for itempool. More... | |
void | ami_object_fini (void) |
static void | ami_NewMinList (struct MinList *list) |
struct MinList * | ami_AllocMinList (void) |
List abstraction as OS3 appears to have problems with NewMinList() More... | |
struct MinList * | NewObjList (void) |
struct nsObject * | AddObject (struct MinList *objlist, ULONG otype) |
void | ObjectCallback (struct nsObject *dtzo, void(*callback)(void *nso)) |
static void | DelObjectInternal (struct nsObject *dtzo, BOOL free_obj) |
void | DelObject (struct nsObject *dtzo) |
void | DelObjectNoFree (struct nsObject *dtzo) |
void | FreeObjList (struct MinList *objlist) |
Variables | |
static APTR | pool_nsobj = NULL |
struct nsObject * AddObject | ( | struct MinList * | objlist, |
ULONG | otype | ||
) |
Definition at line 77 of file object.c.
References ami_memory_itempool_alloc, pool_nsobj, and nsObject::Type.
Referenced by ami_cw_redraw(), ami_font_cache_insert(), ami_font_scan_init(), ami_font_scan_list(), ami_gui_win_list_add(), ami_mime_guess_add_datatype(), ami_mime_init(), and amiga_window_invalidate_area().
struct MinList * ami_AllocMinList | ( | void | ) |
List abstraction as OS3 appears to have problems with NewMinList()
Definition at line 63 of file object.c.
References ami_NewMinList(), and nsList.
Referenced by ami_openurl_open(), ami_plot_ra_alloc(), gui_window_create(), and NewObjList().
|
static |
Definition at line 56 of file object.c.
References NewnsList, and nsList.
Referenced by ami_AllocMinList().
void ami_object_fini | ( | void | ) |
Definition at line 50 of file object.c.
References ami_memory_itempool_delete, and pool_nsobj.
Referenced by ami_gui_resources_free().
bool ami_object_init | ( | void | ) |
Initialisation for itempool.
Definition at line 42 of file object.c.
References ami_memory_itempool_create, and pool_nsobj.
Referenced by ami_gui_resources_open().
void DelObject | ( | struct nsObject * | dtzo | ) |
Definition at line 107 of file object.c.
References DelObjectInternal().
Referenced by ami_font_cache_cleanup(), ami_gui_win_list_remove(), and FreeObjList().
|
static |
Definition at line 97 of file object.c.
References ami_memory_itempool_free, nsObject::callback, nsObject::dtz_Node, nsObject::objstruct, and pool_nsobj.
Referenced by DelObject(), and DelObjectNoFree().
void DelObjectNoFree | ( | struct nsObject * | dtzo | ) |
Definition at line 112 of file object.c.
References DelObjectInternal().
Referenced by ami_cw_redraw_queue(), ami_gui_win_list_remove(), ami_gui_window_update_box_deferred(), ami_gui_window_update_box_deferred_check(), and FreeObjList().
void FreeObjList | ( | struct MinList * | objlist | ) |
Definition at line 117 of file object.c.
References AMINS_RECT, DelObject(), DelObjectNoFree(), GetHead(), GetSucc(), IsMinListEmpty, and nsObject::Type.
Referenced by ami_corewindow_fini(), ami_font_cache_fini(), ami_font_scan_init(), ami_mime_free(), gui_quit(), and gui_window_destroy().
struct MinList * NewObjList | ( | void | ) |
Definition at line 71 of file object.c.
References ami_AllocMinList().
Referenced by ami_corewindow_init(), ami_font_cache_init(), ami_font_scan_init(), ami_mime_init(), gui_window_create(), and main().
void ObjectCallback | ( | struct nsObject * | dtzo, |
void(*)(void *nso) | callback | ||
) |
Definition at line 92 of file object.c.
References nsObject::callback.
Referenced by ami_font_cache_insert(), ami_mime_guess_add_datatype(), and ami_mime_init().
|
static |
Definition at line 40 of file object.c.
Referenced by AddObject(), ami_object_fini(), ami_object_init(), and DelObjectInternal().