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)
19 #define TIMER_SRC_Y (176)
20 #define TIMER_DES_Y (8)
21 #define TIMER_DES_X (7)
22 #define TIMER_SZE_X (6)
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)
36 #define LED_PWR_X (52)
38 #define LED_SND_X (44)
40 #define LED_RCV_X (37)
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)
59 #define ERR_SRC_Y (94)
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)
92 #define ORANGE_LED_TIMEOUT (60)
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);
105 void SetErrLED (int);
106 void SetWaitLED (int);
107 void SetOffLED (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);
129 void remove_dns(void);
131 void warn_pref(void);
132 void make_delayed_update(void);
135 void clean_guards(void);
136 void make_guards(void);
137 void write_log(void);
142 void close_ppp(void);