revert between 56095 -> 55830 in arch
[AROS.git] / workbench / hidds / gallium / gallium_class.c
blob29fc5214f35c2af9f40acf8ee8c8f291698ec2cf
1 /*
2 Copyright 2010-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 0
7 #include <aros/debug.h>
9 #include <proto/oop.h>
10 #include <proto/utility.h>
12 #include "gallium_intern.h"
14 #undef HiddGalliumAttrBase
15 #define HiddGalliumAttrBase (SD(cl)->galliumAttrBase)
17 /* METHODS */
18 OOP_Object *METHOD(Gallium, Root, New)
20 IPTR interfaceVers;
22 D(bug("[gallium.hidd] %s()\n", __func__));
24 interfaceVers = GetTagData(aHidd_Gallium_InterfaceVersion, -1, msg->attrList);
25 if (interfaceVers != GALLIUM_INTERFACE_VERSION)
26 return NULL;
28 o = (OOP_Object *)OOP_DoSuperMethod(cl, o, (OOP_Msg) msg);
30 return o;
33 VOID METHOD(Gallium, Root, Get)
35 ULONG idx;
37 if (IS_GALLIUM_ATTR(msg->attrID, idx))
39 switch (idx)
41 case aoHidd_Gallium_InterfaceVersion:
42 *msg->storage = GALLIUM_INTERFACE_VERSION;
43 return;
47 /* Use parent class for all other properties */
48 OOP_DoSuperMethod(cl, o, (OOP_Msg)msg);
51 APTR METHOD(Gallium, Hidd_Gallium, CreatePipeScreen)
53 D(bug("[gallium.hidd] %s()\n", __func__));
54 return NULL;
57 VOID METHOD(Gallium, Hidd_Gallium, DestroyPipeScreen)
59 D(bug("[gallium.hidd] %s()\n", __func__));
62 VOID METHOD(Gallium, Hidd_Gallium, DisplayResource)
64 D(bug("[gallium.hidd] %s()\n", __func__));