2 Copyright (C) 2015-2016, The AROS Development Team. All rights reserved.
7 #include <aros/debug.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"},
22 struct pRoot_New new_msg
=
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. */