Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / reqtools / rtfreereqbuffer.c
blobe897541f638a9d77613d6363c0fa621e521b41e5
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
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 /*****************************************************************************
21 NAME */
23 AROS_LH1(void, rtFreeReqBuffer,
25 /* SYNOPSIS */
27 AROS_LHA(APTR, req, A1),
29 /* LOCATION */
31 struct ReqToolsBase *, ReqToolsBase, 7, ReqTools)
33 /* FUNCTION
34 Frees the buffer associated with 'req'. In case of a file requester
35 this function will deallocate the directory buffer, in case of a
36 font requester the font list.
38 It is safe to call this function for requesters that have no
39 buffer, so you may call this for all requesters to free as much
40 memory as possible.
42 INPUTS
43 req - pointer to requester.
45 RESULT
46 none
48 NOTES
50 EXAMPLE
52 BUGS
53 none known
55 SEE ALSO
56 rtFileRequestA(), rtFontRequestA()
58 INTERNALS
60 HISTORY
62 ******************************************************************************/
64 AROS_LIBFUNC_INIT
66 FreeReqBuffer(req); /* in filereqalloc.c */
68 AROS_LIBFUNC_EXIT
70 } /* rtFreeReqBuffer */