Add missing libraries to examples' Makefiles
[dockapps.git] / yawmppp / src / dockapp / yawmppp.h
blobb95c2cc0171baf918375b57da2950340c822c036
1 /* DEFINES */
3 #define START_ACTION (NULL)
4 #define STOP_ACTION (NULL)
5 #define SPEED_ACTION (NULL)
6 #define IFDOWN_ACTION (NULL)
8 #define STAMP_FILE "/var/run/ppp0.pid"
10 #define LED_PPP_RX (1)
11 #define LED_PPP_TX (2)
12 #define LED_PPP_POWER (3)
14 #define BUT_V (1)
15 #define BUT_X (2)
16 #define BUT_REW (3)
17 #define BUT_FF (4)
19 #define TIMER_SRC_Y (176)
20 #define TIMER_DES_Y (8)
21 #define TIMER_DES_X (7)
22 #define TIMER_SZE_X (6)
24 #define LED_ON_X (51)
25 #define LED_ON_Y (87)
26 #define LED_OFF_X (51)
27 #define LED_OFF_Y (82)
29 #define LED_ERR_X (57)
30 #define LED_ERR_Y (82)
31 #define LED_WTE_X (57)
32 #define LED_WTE_Y (87)
33 #define LED_SZE_X (4)
34 #define LED_SZE_Y (4)
36 #define LED_PWR_X (52)
37 #define LED_PWR_Y (9)
38 #define LED_SND_X (44)
39 #define LED_SND_Y (9)
40 #define LED_RCV_X (37)
41 #define LED_RCV_Y (9)
43 #define ISP_BASE_X (6)
44 #define ISP_BASE_Y (35)
46 #define UPPER_ABC_BASE_X (1)
47 #define UPPER_ABC_BASE_Y (124)
48 #define LOWER_ABC_BASE_X (1)
49 #define LOWER_ABC_BASE_Y (148)
50 #define DIGIT_BASE_X (11)
51 #define DIGIT_BASE_Y (164)
52 #define SPACE_BASE_X (11)
53 #define SPACE_BASE_Y (140)
55 #define ERR_DEST_X (34)
56 #define ERR_DEST_Y (35)
58 #define ERR_SRC_X (0)
59 #define ERR_SRC_Y (94)
61 #define BUT_V_X (35)
62 #define BUT_V_Y (48)
63 #define BUT_X_X (47)
64 #define BUT_X_Y (48)
65 #define BUT_R_X (5)
66 #define BUT_R_Y (48)
67 #define BUT_F_X (17)
68 #define BUT_F_Y (48)
70 #define BUT_V_SRC_X (0)
71 #define BUT_V_SRC_Y (70)
72 #define BUT_X_SRC_X (12)
73 #define BUT_X_SRC_Y (70)
75 #define BUT_R_SRC_X (0)
76 #define BUT_R_SRC_Y (82)
77 #define BUT_F_SRC_X (12)
78 #define BUT_F_SRC_Y (82)
80 #define BUT_UP_INC (24)
82 #define ARR_UP_X (50)
83 #define ARR_UP_Y (70)
84 #define ARR_DN_X (57)
85 #define ARR_DN_Y (70)
87 #define ARR_ACTV (5)
89 #define ARR_W (7)
90 #define ARR_H (4)
92 #define ORANGE_LED_TIMEOUT (60)
94 /* prototypes */
96 void usage (void);
97 void printversion (void);
98 void DrawTime (int, int);
99 void DrawStats (int, int, int, int);
100 void DrawSpeedInd (char *);
101 void DrawLoadInd (int);
102 void DrawISPName (void);
104 void SetOnLED (int);
105 void SetErrLED (int);
106 void SetWaitLED (int);
107 void SetOffLED (int);
109 void ButtonUp (int);
110 void ButtonDown (int);
112 void yawmppp_routine (int, char **);
114 int get_statistics (char *, long *, long *, long *, long *);
115 int stillonline (char *);
117 void draw_isp_char (int, char);
118 void grab_isp_info (int);
120 void sigusr_handler(int signum);
121 void remove_pid_file(void);
122 void write_pid_file(void);
123 void make_config_dir(void);
125 void run_pref_app(void);
126 void run_log_app(void);
128 void add_dns(void);
129 void remove_dns(void);
131 void warn_pref(void);
132 void make_delayed_update(void);
134 /* logs */
135 void clean_guards(void);
136 void make_guards(void);
137 void write_log(void);
139 /* pcmcia blues ? */
141 void open_ppp(void);
142 void close_ppp(void);