2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/reqtools.h>
12 #include <proto/intuition.h>
13 #include <exec/libraries.h>
14 #include <exec/memory.h>
15 #include <aros/libcall.h>
17 #include "reqtools_intern.h"
19 /*****************************************************************************
23 AROS_LH2(APTR
, rtAllocRequestA
,
27 AROS_LHA(ULONG
, type
, D0
),
28 AROS_LHA(struct TagItem
*, taglist
, A0
),
32 struct ReqToolsBase
*, ReqToolsBase
, 5, ReqTools
)
35 Allocates a requester structure for you in a future compatible
36 manner. This is the only way to properly allocate a rtFileRequester,
37 rtFontRequester, rtReqInfo or rtScreenModeRequester structure. The
38 structure will be initialized for you.
40 Use rtFreeRequest() to free the requester structure when you no
44 type - type of structure to allocate, currently RT_REQINFO,
45 RT_FILEREQ, RT_FONTREQ or RT_SCREENMODEREQ.
46 taglist - pointer to array of tags (currently always NULL).
52 req - pointer to the requester allocated or NULL if no memory.
68 ******************************************************************************/
72 return AllocRequestA(type
, taglist
); /* in filereqalloc.c */
76 } /* rtAllocRequestA */