List.mui: Update entries count prior to range change
[AROS.git] / rom / hidds / base / storage / storage_class.c
blob478de4ceded7070ec9a4bb5ce4bffe122bd0764e
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 "storage_intern.h"
13 OOP_Object *StorageHW__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)"Storage Controllers"},
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 StorageHW__Root__Dispose(OOP_Class *cl, OOP_Object *o, OOP_Msg msg)
36 /* We are singletone. Cannot dispose. */