Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / muimaster / classes / settingsgroup.c
blob68a86cd9399cc4ae3b56bc8cfc92a843dc2c87bc
1 /*
2 Copyright © 2002-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define MUIMASTER_YES_INLINE_STDARG
8 #include <graphics/gfx.h>
9 #include <graphics/view.h>
10 #include <clib/alib_protos.h>
11 #include <proto/exec.h>
12 #include <proto/graphics.h>
13 #include <proto/utility.h>
14 #include <proto/intuition.h>
15 #include <proto/muimaster.h>
17 #include "mui.h"
18 #include "muimaster_intern.h"
19 #include "support.h"
20 #include "support_classes.h"
21 #include "settingsgroup_private.h"
23 extern struct Library *MUIMasterBase;
26 IPTR Settingsgroup__OM_NEW(struct IClass *cl, Object *obj, struct opSet *msg)
28 struct MUI_Settingsgroup *data;
29 const struct TagItem *tags;
30 struct TagItem *tag;
32 obj = (Object *) DoSuperNewTags
34 cl, obj, NULL,
35 TAG_MORE, (IPTR) msg->ops_AttrList
37 if (!obj) return FALSE;
39 data = INST_DATA(cl, obj);
41 /* parse initial taglist */
43 for (tags = msg->ops_AttrList; (tag = NextTagItem(&tags)); )
45 switch (tag->ti_Tag)
50 return (IPTR)obj;
53 IPTR Settingsgroup__MUIM_Settingsgroup_ConfigToGadgets(struct IClass *cl, Object *obj, struct MUIP_Settingsgroup_ConfigToGadgets *msg)
55 //struct MUI_Settingsgroup *data = INST_DATA(cl, obj);
56 return 0;
59 IPTR Settingsgroup__MUIM_Settingsgroup_GadgetsToConfig(struct IClass *cl, Object *obj, struct MUIP_Settingsgroup_GadgetsToConfig *msg)
61 //struct MUI_Settingsgroup *data = INST_DATA(cl, obj);
62 return 0;
65 #if ZUNE_BUILTIN_SETTINGSGROUP
66 BOOPSI_DISPATCHER(IPTR, Settingsgroup_Dispatcher, cl, obj, msg)
68 switch (msg->MethodID)
70 case OM_NEW:
71 return Settingsgroup__OM_NEW(cl, obj, (struct opSet *)msg);
73 case MUIM_Settingsgroup_ConfigToGadgets:
74 return Settingsgroup__MUIM_Settingsgroup_ConfigToGadgets(cl,obj,(APTR)msg);
76 case MUIM_Settingsgroup_GadgetsToConfig:
77 return Settingsgroup__MUIM_Settingsgroup_GadgetsToConfig(cl,obj,(APTR)msg);
79 default:
80 return DoSuperMethodA(cl, obj, msg);
83 BOOPSI_DISPATCHER_END
85 const struct __MUIBuiltinClass _MUI_Settingsgroup_desc =
87 MUIC_Settingsgroup,
88 MUIC_Group,
89 sizeof(struct Settingsgroup_DATA),
90 (void*)Settingsgroup_Dispatcher
92 #endif /* ZUNE_BUILTIN_SETTINGSGROUP */