2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: libinit library - functions calling when opening/closing libs
8 #include <exec/types.h>
9 #include <aros/symbolsets.h>
11 typedef int (*libfunc
)(APTR libbase
);
12 typedef int (*opendevfunc
)
19 typedef int (*closedevfunc
)
27 const void * const set
[],
33 int pos
, (*func
)(APTR
);
38 ForeachElementInSet(set
, order
, pos
, func
)
42 if (!(*func
)(libbase
))
47 (void)(*func
)(libbase
);
56 const void * const set
[],
72 int (*func
)(APTR
, APTR
, IPTR
, ULONG
);
74 ForeachElementInSet(set
, order
, pos
, func
)
78 if (!(*func
)(libbase
, ioreq
, unitnum
, flags
))
83 (void)(*func
)(libbase
, ioreq
, unitnum
, flags
);
89 int (*func
)(APTR
, APTR
);
91 ForeachElementInSet(set
, order
, pos
, func
)
95 if (!(*func
)(libbase
, ioreq
))
100 (void)(*func
)(libbase
, ioreq
);