grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / base / system / system_class.c
blob8521f57499b231aa303e0009d1f495bb4f27cad0
1 /*
2 Copyright (C) 2015-2016, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 1
7 #include <aros/debug.h>
8 #include <oop/oop.h>
9 #include <utility/tagitem.h>
11 #include "system_intern.h"
13 OOP_Object *SystemHW__Root__New(OOP_Class *cl, OOP_Object *o, struct pRoot_New *msg)
15 if (!CSD(cl)->instance)
17 struct TagItem new_tags[] =
19 {aHW_ClassName, (IPTR)"System Devices"},
20 {TAG_DONE , 0 }
22 struct pRoot_New new_msg =
24 .mID = msg->mID,
25 .attrList = new_tags
28 CSD(cl)->instance = (OOP_Object *)OOP_DoSuperMethod(cl, o, &new_msg.mID);
31 return CSD(cl)->instance;
34 VOID SystemHW__Root__Dispose(OOP_Class *cl, OOP_Object *o, OOP_Msg msg)
36 /* We are singletone. Cannot dispose. */