-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.h
105 lines (90 loc) · 4.62 KB
/
app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
app.h (22.02.2015)
#defines and prototypes for app.c
based on DevCon '90 commodities example by
Commodore-Amiga, Inc.
*/
#ifndef APP_H
#define APP_H
#endif
#include <exec/types.h>
#include <exec/ports.h>
#include <intuition/intuition.h>
#include <libraries/commodities.h>
/**********************************************************************/
/* Prototypes for functions declared in app.c and called from the */
/* standard modules. */
/**********************************************************************/
BOOL setupCustomCX(VOID);
VOID shutdownCustomCX(VOID);
VOID handleCustomCXMsg(ULONG);
VOID handleCustomCXCommand(ULONG);
VOID handleCustomSignal(VOID);
/**********************************************************************/
/* Prototypes for functions declared in the standard modules and */
/* called by app.c */
/**********************************************************************/
VOID terminate(VOID);
/**********************************************************************/
/* Prototypes for functions declared in application modules and */
/* called by app.c */
/**********************************************************************/
BOOL setupIHelp(VOID);
VOID MyHandleCXMsg(ULONG);
VOID handleIMsg(struct IntuiMessage *, UBYTE);
/**********************************************************************/
/* definitions for global variables declared in the standard modules */
/* referenced by app.c */
/**********************************************************************/
extern CxObj *broker;
extern SHORT topborder;
extern VOID *vi;
extern char **ttypes;
extern struct MsgPort *cxport;
extern struct IntuitionBase *IntuitionBase;
extern BOOL IDCMPRefresh;
CONST_STRPTR GetString(enum AppStringsID id);
/**********************************************************************/
/* definitions for global variables declared in app.c and */
/* referenced by the standard modules. */
/**********************************************************************/
// none left
/**********************************************************************/
/* Commodities specific definitions. */
/* */
/* COM_NAME - used for the scrolling display in the Exchange program */
/* COM_TITLE - used for the window title bar and the long description */
/* in the Exchange program */
/* COM_DESC - Commodity description used by the Exchange program */
/* CX_DEFAULT_PRIORITY - default priority for this commodities broker */
/* can be overidden by using icon TOOL TYPES */
/**********************************************************************/
#define COM_NAME "TempMon"
#define COM_TITLE "TempMon"
#define COM_DESCR "Display your Amiga's temperature"
#define CX_DEFAULT_PRIORITY 0
//#define CX_DEFAULT_POP_KEY ("lamiga f9")
#define CX_DEFAULT_POP_ON_START ("NO")
/**********************************************************************/
/* Custom Signal control */
/* */
/* If CSIGNAL = 0 then this commodity will NOT have a custom signal */
/* If CSIGNAL = 1 this commodity will support a custom signal */
/**********************************************************************/
#define CSIGNAL 0
/**********************************************************************/
/* Window control */
/* */
/* If WINDOW = 0 then this commodity will NOT have a popup window */
/* If WINDOW = 1 this commodity will support a popup window with the */
/* attributes defined below. */
/**********************************************************************/
#define WINDOW 0
/*#define POP_KEY_ID (86L) */ /* pop up identifier */
/***********************************************************************/
/* TempMon functionality -
supported commands' table
-------------------------
************************************************************************/
#define HIDETEMP 0L
#define DISPLAYTEMP 1L