gcc-4.6.2: Update with patch for gengtype.c
[AROS.git] / rom / isapnp / pnp_iterators.h
blob73c32189bf078e2ccd7cf752b67c3c33ab533de9
1 /* $Id$ */
3 /*
4 ISA-PnP -- A Plug And Play ISA software layer for AmigaOS.
5 Copyright (C) 2001 Martin Blom <martin@blom.org>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with this library; if not, write to the
19 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
20 MA 02139, USA.
23 #ifndef ISA_PNP_pnp_iterators_h
24 #define ISA_PNP_pnp_iterators_h
26 #include "CompilerSpecific.h"
28 #include <exec/lists.h>
29 #include <exec/nodes.h>
30 #include <exec/types.h>
33 struct ISAPNP_Resource;
34 struct ISAPNPBase;
36 struct ResourceIterator;
37 struct ResourceIteratorList;
38 struct ResourceContext;
41 struct ResourceContext*
42 AllocResourceIteratorContext( void );
44 void
45 FreeResourceIteratorContext( struct ResourceContext* ctx );
49 struct ResourceIteratorList*
50 AllocResourceIteratorList( struct MinList* resource_list,
51 struct ResourceContext* ctx );
54 BOOL
55 FreeResourceIteratorList( struct ResourceIteratorList* list,
56 struct ResourceContext* ctx );
60 BOOL
61 IncResourceIteratorList( struct ResourceIteratorList* iter_list,
62 struct ResourceContext* ctx );
66 struct ISAPNP_Resource*
67 CreateResource( struct ResourceIterator* iter,
68 struct ISAPNPBase* res );
70 BOOL
71 CreateResouces( struct ResourceIteratorList* ril,
72 struct List* result,
73 struct ISAPNPBase* res );
75 #endif /* ISA_PNP_pnp_iterators_h */