NetSurf
Macros | Functions | Variables
object.c File Reference
#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"
Include dependency graph for object.c:

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 nsObjectAddObject (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
 

Macro Definition Documentation

◆ NewnsList

#define NewnsList   NewList

Definition at line 37 of file object.c.

◆ nsList

#define nsList   List

Definition at line 36 of file object.c.

Function Documentation

◆ AddObject()

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().

Here is the caller graph for this function:

◆ ami_AllocMinList()

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().

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

◆ ami_NewMinList()

static void ami_NewMinList ( struct MinList *  list)
static

Definition at line 56 of file object.c.

References NewnsList, and nsList.

Referenced by ami_AllocMinList().

Here is the caller graph for this function:

◆ ami_object_fini()

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().

Here is the caller graph for this function:

◆ ami_object_init()

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().

Here is the caller graph for this function:

◆ DelObject()

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().

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

◆ DelObjectInternal()

static void DelObjectInternal ( struct nsObject dtzo,
BOOL  free_obj 
)
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().

Here is the caller graph for this function:

◆ 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().

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

◆ 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().

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

◆ NewObjList()

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().

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

◆ ObjectCallback()

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().

Here is the caller graph for this function:

Variable Documentation

◆ pool_nsobj

APTR pool_nsobj = NULL
static

Definition at line 40 of file object.c.

Referenced by AddObject(), ami_object_fini(), ami_object_init(), and DelObjectInternal().