NetSurf
object.h
Go to the documentation of this file.
1/*
2 * Copyright 2008,2009 Chris Young <chris@unsatisfactorysoftware.co.uk>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef AMIGA_OBJECT_H
20#define AMIGA_OBJECT_H
21
22#include <exec/lists.h>
23
24enum
25{
40};
41
43{
44 struct Node dtz_Node;
45 ULONG Type;
46 void *objstruct;
48 void (*callback)(void *nso);
49};
50
51
52struct MinList *NewObjList(void);
53struct nsObject *AddObject(struct MinList *objlist, ULONG otype);
54void ObjectCallback(struct nsObject *dtzo, void (*callback)(void *nso));
55void DelObject(struct nsObject *dtzo);
56void DelObjectNoFree(struct nsObject *dtzo);
57void FreeObjList(struct MinList *objlist);
58
59/** List abstraction as OS3 appears to have problems with NewMinList() **/
60struct MinList *ami_AllocMinList(void);
61
62/** Initialisation for itempool **/
63bool ami_object_init(void);
64void ami_object_fini(void);
65#endif
66
struct MinList * ami_AllocMinList(void)
List abstraction as OS3 appears to have problems with NewMinList()
Definition: object.c:63
@ AMINS_FINDWINDOW
Definition: object.h:32
@ AMINS_PRINTWINDOW
Definition: object.h:35
@ AMINS_DLWINDOW
Definition: object.h:29
@ AMINS_MIME
Definition: object.h:38
@ AMINS_FONT
Definition: object.h:37
@ AMINS_WINDOW
Definition: object.h:28
@ AMINS_GUIOPTSWINDOW
Definition: object.h:34
@ AMINS_TVWINDOW
Definition: object.h:31
@ AMINS_RECT
Definition: object.h:39
@ AMINS_HISTORYWINDOW
Definition: object.h:33
@ AMINS_COREWINDOW
Definition: object.h:36
@ AMINS_LOGINWINDOW
Definition: object.h:30
@ AMINS_CALLBACK
Definition: object.h:27
@ AMINS_UNKNOWN
Definition: object.h:26
struct MinList * NewObjList(void)
Definition: object.c:71
void FreeObjList(struct MinList *objlist)
Definition: object.c:117
void ami_object_fini(void)
Definition: object.c:50
bool ami_object_init(void)
Initialisation for itempool.
Definition: object.c:42
void ObjectCallback(struct nsObject *dtzo, void(*callback)(void *nso))
Definition: object.c:92
void DelObject(struct nsObject *dtzo)
Definition: object.c:107
struct nsObject * AddObject(struct MinList *objlist, ULONG otype)
Definition: object.c:77
void DelObjectNoFree(struct nsObject *dtzo)
Definition: object.c:112
struct Node dtz_Node
Definition: object.h:44
void(* callback)(void *nso)
Definition: object.h:48
ULONG Type
Definition: object.h:45
void * objstruct
Definition: object.h:46
ULONG objstruct_size
Definition: object.h:47