Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Device / gateway.h
blobb172006e2a1664ee21f91c4a59a7bd6ac2e4699b
1 /*
2 AHI - Hardware independent audio subsystem
3 Copyright (C) 1996-2005 Martin Blom <martin@blom.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
18 MA 02139, USA.
21 #ifndef ahi_gateway_h
22 #define ahi_gateway_h
24 #include <config.h>
26 void m68k_IndexToFrequency( void );
27 void m68k_DevProc( void );
30 #if defined( __AROS__ ) && !defined( __mc68000__ )
32 BOOL
33 m68k_PreTimer( void );
35 void
36 m68k_PostTimer( void );
38 #define HookEntryPreserveAllRegs HookEntry
39 #define PreTimerPreserveAllRegs m68k_PreTimer
40 #define PostTimerPreserveAllRegs m68k_PostTimer
42 #else
44 /* Special hook entry points */
45 void HookEntryPreserveAllRegs( void );
47 /* (Pre|Post)Timer entry points */
48 void PreTimerPreserveAllRegs( void );
49 void PostTimerPreserveAllRegs( void );
51 #endif /* defined( __AROS__ ) && !defined( __mc68000__ ) */
53 #ifdef __AMIGAOS4__
54 ULONG HookEntry( struct Hook* h, void* o, void* m );
55 #endif
57 #endif /* ahi_gateway_h */