2 Copyright © 2002-2008, The AROS Development Team.
8 #ifndef _MIAMIPANEL_INTERN_H
9 #define _MIAMIPANEL_INTERN_H
12 # include <exec/types.h>
14 #ifndef EXEC_LIBRARIES_H
15 # include <exec/libraries.h>
18 # include <exec/memory.h>
20 #ifndef UTILITY_UTILITY_H
21 # include <utility/utility.h>
24 #include <libraries/mui.h>
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
;
46 struct Catalog
*mpb_cat
;
48 struct MsgPort
*mpb_port
;
50 MiamiPanelCallBackType
*mpb_synccb
;
51 MiamiPanelCallBackType
*mpb_asynccb
;
53 UBYTE mpb_groupSep
[16];
54 UBYTE mpb_decPoint
[16];
56 struct MinList mpb_msgList
;
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
;
76 /****************************************************************************************/
79 #define MUIPB(b) ((struct MiamiPanelBase_intern *)(b))
81 /****************************************************************************************/
83 #define MESSAGE(m) ((struct Message *)(m))
86 #define PORT(port) ((struct MsgPort *)(port))
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)))
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 */