Reapplied r44918 (as far as it applies to fat-handler):
[AROS.git] / rom / expansion / allocconfigdev.c
blob45b4677a8f1a2ebbcbaaa215d5005e85cf655fa1
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: AllocConfigDev() - Create a new ConfigDev in a compatible way.
6 Lang: english
7 */
8 #include "expansion_intern.h"
9 #include <exec/memory.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
15 #include <proto/expansion.h>
17 AROS_LH0(struct ConfigDev *, AllocConfigDev,
19 /* SYNOPSIS */
20 /* void */
22 /* LOCATION */
23 struct ExpansionBase *, ExpansionBase, 8, Expansion)
25 /* FUNCTION
26 AllocConfigDev() will allocate a new ConfigDev structure for
27 you. You should use this function in order for you to be
28 compatible with future versions of the OS in case this
29 structure changes.
31 INPUTS
32 None.
34 RESULT
35 A newly created ConfigDev structure.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 FreeConfigDev()
46 INTERNALS
48 HISTORY
49 27-11-96 digulla automatically created from
50 expansion_lib.fd and clib/expansion_protos.h
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 return AllocMem(sizeof(struct ConfigDev), MEMF_CLEAR|MEMF_PUBLIC);
58 AROS_LIBFUNC_EXIT
59 } /* AllocConfigDev */