revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / diskimage / raauto / speedbar_autoopenlib.c
blob429a2af855750ce7f9974501e8f659fa9841bdeb
1 #include <exec/libraries.h>
2 #include <proto/exec.h>
3 #include <stdlib.h>
4 #include "raauto_alerts.h"
6 static CONST TEXT class_name[] = "gadgets/speedbar.gadget";
7 struct Library * SpeedBarBase = 0;
8 extern unsigned long _SpeedBarBaseVer;
10 void _INIT_5_SpeedBarBase(void)
12 if(!(SpeedBarBase = OpenLibrary(class_name, _SpeedBarBaseVer))) {
13 RAAutoClassNotFound(class_name);
14 exit(EXIT_FAILURE);
18 void _EXIT_5_SpeedBarBase(void)
20 if(SpeedBarBase)
21 CloseLibrary(SpeedBarBase);