Support rastport clipping rectangle for layerless rastports
[tangerine.git] / rom / expansion / addconfigdev.c
bloba64469331b91ef41bc1b6889d8067f9d8edef7e4
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Add a ConfigDev struct to the system.
6 Lang: english
7 */
8 #include "expansion_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <libraries/configvars.h>
15 #include <proto/expansion.h>
17 AROS_LH1(void, AddConfigDev,
19 /* SYNOPSIS */
20 AROS_LHA(struct ConfigDev *, configDev, A0),
22 /* LOCATION */
23 struct ExpansionBase *, ExpansionBase, 5, Expansion)
25 /* FUNCTION
26 This function will add a ConfigDev structure to the systems
27 list of Configuration Devices. This function is not normally
28 called by user code.
30 INPUTS
31 configDev - The Configuration Device to add to the system.
33 RESULT
34 The device will be added to the system.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 RemConfigDev
45 INTERNALS
47 HISTORY
48 27-11-96 digulla automatically created from
49 expansion_lib.fd and clib/expansion_protos.h
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
54 AROS_LIBBASE_EXT_DECL(struct ExpansionBase *,ExpansionBase)
56 if(configDev)
58 ObtainConfigBinding();
59 AddTail(&IntExpBase(ExpansionBase)->eb_BoardList, (struct Node *)configDev);
60 ReleaseConfigBinding();
63 AROS_LIBFUNC_EXIT
64 } /* AddConfigDev */