Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / include / amigaos / inline / diskimage_protos.h
blobd254c889a9cb6c049a8a7eecd4087b64bed41275
1 #ifndef _VBCCINLINE_DISKIMAGE_H
2 #define _VBCCINLINE_DISKIMAGE_H
4 #ifndef EXEC_TYPES_H
5 #include <exec/types.h>
6 #endif
8 LONG __MountImage(__reg("a6") struct Library *, __reg("d0") ULONG unit_num, __reg("a0") CONST_STRPTR filename)="\tjsr\t-42(a6)";
9 #define MountImage(unit_num, filename) __MountImage(DiskImageBase, (unit_num), (filename))
11 LONG __UnitInfo(__reg("a6") struct Library *, __reg("d0") ULONG unit_num, __reg("a0") STRPTR * filename, __reg("a1") BOOL * writeprotect)="\tjsr\t-48(a6)";
12 #define UnitInfo(unit_num, filename, writeprotect) __UnitInfo(DiskImageBase, (unit_num), (filename), (writeprotect))
14 LONG __WriteProtect(__reg("a6") struct Library *, __reg("d0") ULONG unit_num, __reg("d1") LONG writeprotect)="\tjsr\t-54(a6)";
15 #define WriteProtect(unit_num, writeprotect) __WriteProtect(DiskImageBase, (unit_num), (writeprotect))
17 LONG __UnitControlA(__reg("a6") struct Library *, __reg("d0") ULONG unit_num, __reg("a0") struct TagItem * tags)="\tjsr\t-60(a6)";
18 #define UnitControlA(unit_num, tags) __UnitControlA(DiskImageBase, (unit_num), (tags))
20 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
21 LONG __UnitControl(__reg("a6") struct Library *, __reg("d0") ULONG unit_num, Tag tags, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-60(a6)\n\tmovea.l\t(a7)+,a0";
22 #define UnitControl(unit_num, ...) __UnitControl(DiskImageBase, (unit_num), __VA_ARGS__)
23 #endif
25 LONG __ReloadPlugins(__reg("a6") struct Library *)="\tjsr\t-66(a6)";
26 #define ReloadPlugins() __ReloadPlugins(DiskImageBase)
28 void __DoHookPlugins(__reg("a6") struct Library *, __reg("a0") struct Hook * hook)="\tjsr\t-72(a6)";
29 #define DoHookPlugins(hook) __DoHookPlugins(DiskImageBase, (hook))
31 void __AddDiskChangeHook(__reg("a6") struct Library *, __reg("a0") struct Hook * hook, __reg("d0") LONG add_or_remove)="\tjsr\t-78(a6)";
32 #define AddDiskChangeHook(hook, add_or_remove) __AddDiskChangeHook(DiskImageBase, (hook), (add_or_remove))
34 void __AddReloadPluginsHook(__reg("a6") struct Library *, __reg("a0") struct Hook * hook, __reg("d0") LONG add_or_remove)="\tjsr\t-84(a6)";
35 #define AddReloadPluginsHook(hook, add_or_remove) __AddReloadPluginsHook(DiskImageBase, (hook), (add_or_remove))
37 #endif /* _VBCCINLINE_DISKIMAGE_H */