Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / muimaster / classes / virtgroup.c
blob27e5e12c4ed0d92bc1567cc936905ff02c1b7f9f
1 /*
2 Copyright © 2002-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define MUIMASTER_YES_INLINE_STDARG
8 #include <exec/memory.h>
9 #include <intuition/icclass.h>
10 #include <intuition/gadgetclass.h>
11 #include <intuition/imageclass.h>
12 #include <clib/alib_protos.h>
13 #include <proto/exec.h>
14 #include <proto/intuition.h>
15 #include <proto/utility.h>
16 #include <proto/graphics.h>
17 #include <proto/muimaster.h>
19 #include "mui.h"
20 #include "muimaster_intern.h"
21 #include "support.h"
22 #include "support_classes.h"
24 extern struct Library *MUIMasterBase;
26 IPTR Virtgroup__OM_NEW(struct IClass *cl, Object *obj, struct opSet *msg)
28 return DoSuperNewTags
30 cl, obj, NULL,
31 MUIA_Group_Virtual, TRUE,
32 TAG_MORE, (IPTR) msg->ops_AttrList
36 #if ZUNE_BUILTIN_VIRTGROUP
37 BOOPSI_DISPATCHER(IPTR, Virtgroup_Dispatcher, cl, obj, msg)
39 switch (msg->MethodID)
41 case OM_NEW: return Virtgroup__OM_NEW(cl, obj, (struct opSet *)msg);
42 default: return DoSuperMethodA(cl, obj, msg);
45 BOOPSI_DISPATCHER_END
47 const struct __MUIBuiltinClass _MUI_Virtgroup_desc =
49 MUIC_Virtgroup,
50 MUIC_Group,
51 0,
52 (void*)Virtgroup_Dispatcher
54 #endif /* ZUNE_BUILTIN_VIRTGROUP */