2 Copyright © 1995-2006, 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
)
33 int pos
, (*func
)(APTR
);
35 ForeachElementInSet(set
, order
, pos
, func
)
39 if (!(*func
)(libbase
))
44 (void)(*func
)(libbase
);
66 int (*func
)(APTR
, APTR
, ULONG
, ULONG
);
68 ForeachElementInSet(set
, order
, pos
, func
)
72 if (!(*func
)(libbase
, ioreq
, unitnum
, flags
))
77 (void)(*func
)(libbase
, ioreq
, unitnum
, flags
);
83 int (*func
)(APTR
, APTR
);
85 ForeachElementInSet(set
, order
, pos
, func
)
89 if (!(*func
)(libbase
, ioreq
))
94 (void)(*func
)(libbase
, ioreq
);