revert between 56095 -> 55830 in arch
[AROS.git] / rom / hidds / base / system / system_class.c
blob5e29fc791e8375f02ca89dca7e03b3686e839de5
1 /*
2 Copyright (C) 2015-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 0
7 #include <aros/debug.h>
9 #include <oop/oop.h>
10 #include <utility/tagitem.h>
12 #include "system_intern.h"
14 IPTR SystemHW__Root__New(OOP_Class *cl, OOP_Object *o, struct pRoot_New *msg)
16 if (!CSD(cl)->instance)
18 struct TagItem new_tags[] =
20 {aHW_ClassName, (IPTR)"System Devices"},
21 {TAG_DONE , 0 }
23 struct pRoot_New new_msg =
25 .mID = msg->mID,
26 .attrList = new_tags
29 CSD(cl)->instance = (OOP_Object *)OOP_DoSuperMethod(cl, o, &new_msg.mID);
32 return (IPTR)CSD(cl)->instance;
35 VOID SystemHW__Root__Dispose(OOP_Class *cl, OOP_Object *o, OOP_Msg msg)
37 /* We are singletone. Cannot dispose. */