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