Include the interface name in the CauseIRQ method identifiers.
[AROS.git] / workbench / hidds / irq / irq_stubs.c
blobdf98947569934cbedd151b92c2573201fae17a70
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Stubs for IRQ class
6 Lang: english
7 */
9 #ifndef AROS_USE_OOP
10 # define AROS_USE_OOP
11 #endif
13 #include <aros/config.h>
14 #include <exec/types.h>
15 #include <exec/libraries.h>
17 #include <proto/oop.h>
19 #include <utility/tagitem.h>
21 #include <oop/oop.h>
22 #include <hidd/irq.h>
24 //#include "irq.h"
26 #undef SDEBUG
27 #undef DEBUG
28 #define DEBUG 0
29 #include <aros/debug.h>
31 #undef OOPBase
32 #define OOPBase (OOP_OOPBASE(obj))
34 #ifdef AROS_CREATE_ROM
35 # define STATIC_MID OOP_MethodID mid = 0
36 #else
37 # define STATIC_MID static OOP_MethodID mid
38 #endif
39 /***************************************************************/
41 BOOL HIDD_IRQ_AddHandler(OOP_Object *obj, HIDDT_IRQ_Handler *handler, HIDDT_IRQ_Id id)
43 STATIC_MID;
44 struct pHidd_IRQ_AddHandler p;
46 if(!mid) mid = OOP_GetMethodID(IID_Hidd_IRQ, moHidd_IRQ_AddHandler);
48 p.mID = mid;
49 p.handlerinfo = handler;
50 p.id = id;
52 return((BOOL) OOP_DoMethod(obj, (OOP_Msg) &p));
55 /***************************************************************/
57 VOID HIDD_IRQ_RemHandler(OOP_Object *obj, HIDDT_IRQ_Handler *handler)
59 STATIC_MID;
60 struct pHidd_IRQ_RemHandler p;
62 if (!mid) mid = OOP_GetMethodID(IID_Hidd_IRQ, moHidd_IRQ_RemHandler);
64 p.mID = mid;
65 p.handlerinfo = handler;
67 OOP_DoMethod(obj, (OOP_Msg) &p);
70 /*****************************************************************/
72 VOID HIDD_IRQ_CauseIRQ(OOP_Object *obj, HIDDT_IRQ_Id id, HIDDT_IRQ_HwInfo *hwinfo)
74 STATIC_MID;
75 struct pHidd_IRQ_CauseIRQ p;
77 if (!mid) mid = OOP_GetMethodID(IID_Hidd_IRQ, moHidd_IRQ_CauseIRQ);
79 p.mID = mid;
80 p.id = id;
81 p.hardwareinfo = hwinfo;
83 OOP_DoMethod(obj, (OOP_Msg) &p);