2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Get the CurrentBinding structure.
8 #include "expansion_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <proto/expansion.h>
16 AROS_LH2(ULONG
, GetCurrentBinding
,
19 AROS_LHA(struct CurrentBinding
*, currentBinding
, A0
),
20 AROS_LHA(ULONG
, bindingSize
, D0
),
23 struct ExpansionBase
*, ExpansionBase
, 23, Expansion
)
26 This function will return the contents of the "currentBinding"
27 structure. The currentBinding structure may be set with
28 SetConfigBinding(). This is how arguments are passed to a newly
31 A CurrentBinding structure has the following information:
32 - the name of the currently loaded driver file
33 - the product string associated with this driver
34 - a singly linked list of ConfigDev structures
36 You may not need this information, but it is recommended that you
37 at least make sure you can deal with the product code in the
41 currentBinding - a pointer to the CurrentBinding structure that
43 bindingSize - the size of the currentBinding structure. Do
44 not pass less than sizeof(struct CurrentBinding).
47 The size of the CurrentBinding structure returned.
61 27-11-96 digulla automatically created from
62 expansion_lib.fd and clib/expansion_protos.h
64 *****************************************************************************/
67 AROS_LIBBASE_EXT_DECL(struct ExpansionBase
*,ExpansionBase
)
69 if( bindingSize
< sizeof(struct CurrentBinding
) )
72 CopyMem(&IntExpBase(ExpansionBase
)->eb_CurrentBinding
,
74 sizeof(struct CurrentBinding
));
76 return sizeof(struct CurrentBinding
);
79 } /* GetCurrentBinding */