tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / MUI.MiamiPanel / muimiamipanel_intern.h
blob19372c6e68a7dbe4a96c065d069a627b71ed66b8
1 /*
2 Copyright © 2002-2008, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
8 #ifndef _MIAMIPANEL_INTERN_H
9 #define _MIAMIPANEL_INTERN_H
11 #ifndef EXEC_TYPES_H
12 # include <exec/types.h>
13 #endif
14 #ifndef EXEC_LIBRARIES_H
15 # include <exec/libraries.h>
16 #endif
17 #ifndef EXEC_MEMORY_H
18 # include <exec/memory.h>
19 #endif
20 #ifndef UTILITY_UTILITY_H
21 # include <utility/utility.h>
22 #endif
24 #include <libraries/mui.h>
26 #define DEBUG 0
27 #include <aros/debug.h>
29 #include "muimiamipanel.h"
31 /****************************************************************************************/
33 extern struct TagItem scales[];
35 struct MiamiPanelBase_intern
37 struct Library mpb_library;
39 struct SignalSemaphore mpb_libSem;
40 struct SignalSemaphore mpb_procSem;
41 struct SignalSemaphore mpb_memSem;
42 APTR mpb_pool;
43 ULONG mpb_flags;
44 ULONG mpb_use;
46 struct Catalog *mpb_cat;
48 struct MsgPort *mpb_port;
49 APTR mpb_app;
50 MiamiPanelCallBackType *mpb_synccb;
51 MiamiPanelCallBackType *mpb_asynccb;
53 UBYTE mpb_groupSep[16];
54 UBYTE mpb_decPoint[16];
56 struct MinList mpb_msgList;
57 ULONG mpb_freeMsg;
59 struct MUI_CustomClass *mpb_appClass;
60 struct MUI_CustomClass *mpb_aboutClass;
61 struct MUI_CustomClass *mpb_prefsClass;
62 struct MUI_CustomClass *mpb_mgroupClass;
63 struct MUI_CustomClass *mpb_ifGroupClass;
64 struct MUI_CustomClass *mpb_ifClass;
65 struct MUI_CustomClass *mpb_lbuttonClass;
66 struct MUI_CustomClass *mpb_rateClass;
67 struct MUI_CustomClass *mpb_trafficClass;
68 struct MUI_CustomClass *mpb_timeTextClass;
71 enum
73 BASEFLG_Init = 1<<0,
76 /****************************************************************************************/
78 #undef MUIPB
79 #define MUIPB(b) ((struct MiamiPanelBase_intern *)(b))
81 /****************************************************************************************/
82 #undef MESSAGE
83 #define MESSAGE(m) ((struct Message *)(m))
85 #undef PORT
86 #define PORT(port) ((struct MsgPort *)(port))
88 #undef INITPORT
89 #define INITPORT(p,s) (PORT(p)->mp_Flags = PA_SIGNAL, \
90 PORT(p)->mp_SigBit = (UBYTE)(s), \
91 PORT(p)->mp_SigTask = FindTask(NULL), \
92 NewList(&(PORT(p)->mp_MsgList)))
94 #undef INITMESSAGE
95 #define INITMESSAGE(m,p,l) (MESSAGE(m)->mn_Node.ln_Type = NT_MESSAGE, \
96 MESSAGE(m)->mn_ReplyPort = PORT(p), \
97 MESSAGE(m)->mn_Length = ((UWORD)l))
99 /****************************************************************************************/
101 #endif /* _MIAMIPANEL_INTERN_H */