2 Copyright (C) 2015-2018, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
9 #include <utility/tagitem.h>
11 #include "storage_intern.h"
13 OOP_Object
*StorageHW__Root__New(OOP_Class
*cl
, OOP_Object
*o
, struct pRoot_New
*msg
)
15 D(bug ("[Storage] Root__New()\n");)
16 if (!CSD(cl
)->instance
)
18 struct TagItem new_tags
[] =
20 {aHW_ClassName
, (IPTR
)"Storage Controllers"},
23 struct pRoot_New new_msg
=
29 CSD(cl
)->instance
= (OOP_Object
*)OOP_DoSuperMethod(cl
, o
, &new_msg
.mID
);
32 D(bug ("[Storage] Root__New: Instance @ 0x%p\n", CSD(cl
)->instance
);)
33 return CSD(cl
)->instance
;
36 VOID
StorageHW__Root__Dispose(OOP_Class
*cl
, OOP_Object
*o
, OOP_Msg msg
)
38 D(bug ("[Storage] Root__Dispose(0x%p)\n", o
);)
39 /* We are singletone. Cannot dispose. */
43 VOID
StorageHW__Hidd_Storage__AllocateID(OOP_Class
*cl
, OOP_Object
*o
, struct pHidd_Storage_AllocateID
*msg
)
45 D(bug ("[Storage] Hidd_Storage__AllocateID(0x%p)\n", o
);)
48 VOID
StorageHW__Hidd_Storage__ReleaseID(OOP_Class
*cl
, OOP_Object
*o
, struct pHidd_Storage_ReleaseID
*msg
)
50 D(bug ("[Storage] Hidd_Storage__ReleaseID(0x%p)\n", o
);)