5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Definitions for the Tap HIDD system.
13 # include <exec/types.h>
16 # include <hidd/hidd.h>
22 #include <utility/utility.h>
25 #define CLID_Hidd_Tap "hidd.network.tap"
26 #define CLID_Hidd_TapUnit "hidd.network.tapunit"
28 #define IID_Hidd_Tap "hidd.network.tap"
29 #define IID_Hidd_TapUnit "hidd.network.tapunit"
33 /**** Graphics definitions ****************************************************/
35 #ifndef __OOP_NOATTRBASES__
36 extern OOP_AttrBase HiddTapUnitAB
;
42 num_Hidd_TapUnit_Attrs
46 #define aHidd_TapUnit_Unit (HiddTapUnitAB + aoHidd_TapUnit_Unit)
48 #define IS_HIDDTAPUNIT_ATTR(attr, idx) IS_IF_ATTR(attr, idx, HiddTapUnitAB, num_Hidd_TapUnit_Attrs)
52 moHidd_Tap_NewUnit
= 0,
53 moHidd_Tap_DisposeUnit
,
54 moHidd_Tap_NumMethods
// always keep this the last one!
60 struct pHidd_Tap_NewUnit
66 struct pHidd_Tap_DisposeUnit
73 /**** Tap Unit definitions ******************************************************/
78 /* Methods for a tap unit */
84 moHidd_TapUnit_GetStatus
,
85 moHidd_TapUnit_NumMethods
// always keep this the last one!
89 /* messages for a Tap unit */
91 struct pHidd_TapUnit_Init
95 VOID
*DataReceivedUserData
;
97 VOID
*WriteDataUserData
;
100 struct pHidd_TapUnit_Write
107 struct pHidd_TapUnit_Start
112 struct pHidd_TapUnit_Stop
117 struct pHidd_TapUnit_GetStatus
122 /* Predeclarations of stubs in libhiddTapstubs.h */
124 OOP_Object
* HIDD_Tap_NewUnit (OOP_Object
*obj
, ULONG unitnum
);
125 VOID
HIDD_Tap_DisposeUnit (OOP_Object
*obj
, OOP_Object
*unit
);
127 BOOL
HIDD_TapUnit_Init (OOP_Object
*obj
, VOID
* DataReceived
, VOID
* DataReceivedUserData
, VOID
* WriteData
, VOID
* WriteDataUserData
);
128 ULONG
HIDD_TapUnit_Write (OOP_Object
*obj
, UBYTE
* data
, ULONG length
);
129 VOID
HIDD_TapUnit_Start (OOP_Object
*obj
);
130 VOID
HIDD_TapUnit_Stop (OOP_Object
*obj
);
131 UWORD
HIDD_TapUnit_GetStatus (OOP_Object
*obj
);
133 #endif /* HIDD_TAP_H */