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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
#include <gnome.h>
#include <gconf/gconf-client.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <signal.h>
#include <pcre/pcre.h>
#include <unistd.h>
#include "eggtrayicon.h"
#define BUFSIZE 1024
/* used by pcre code */
#define OVECCOUNT 30 /* should be a multiple of 3 */
void
on_vpnclient_main_window_show (GtkWidget *widget,
gpointer user_data);
gboolean
on_vpnclient_main_window_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
void
on_quit1_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
on_preferences1_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
on_status2_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
on_about1_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
on_execute_vpn_button_clicked (GtkButton *button,
gpointer user_data);
void
on_disconnect_button_clicked (GtkButton *button,
gpointer user_data);
void
on_status_button_clicked (GtkButton *button,
gpointer user_data);
void
on_quit_button_clicked (GtkButton *button,
gpointer user_data);
void
on_vpn_profile_entry_box_changed (GtkEditable *editable,
gpointer user_data);
gboolean
on_login_window_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
void
on_cancel_button_clicked (GtkButton *button,
gpointer user_data);
void
on_submit_button_clicked (GtkButton *button,
gpointer user_data);
gboolean
on_preference_window_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
void
on_preference_cancel_button_clicked (GtkButton *button,
gpointer user_data);
void
on_preference_apply_button_clicked (GtkButton *button,
gpointer user_data);
gboolean
on_status_window_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
void
on_close_status_window_button_clicked
(GtkButton *button,gpointer user_data);
int
kill_child ();
int
write_text_into_fd
(const gchar *my_text_entry,GIOChannel *ioc);
void
update_statusbar
(GtkWidget *anywidget,
gchar *status_message);
int executeVpnClient
(const gchar *profile,
GtkWidget *widget);
int getHostnamefromProfile
(GtkWidget *mywidget);
int getProfiles
(gchar *dir_path,
GtkCombo *vpn_profile_entry);
void close_all_io_channels(gpointer mymain_window);
void start_term
( gchar **args, GtkWidget *main_window);
gboolean
iofunc_stdout (GIOChannel *ioc, GIOCondition cond, gpointer data);
int
getStatus
(GtkWidget *mywidget);
gchar
*checkWhereVpnClientIs
(gchar **path,
gchar *file);
void
create_notify_add
(GtkEntry *entry,
gchar *gconf_key);
void
update_pref_widget
(GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
gpointer user_data);
gboolean
is_vpn_connection_active ();
gboolean
is_vpn_connection_active_full (gpointer mainwindow);
void
on_enter_username_activate (GtkEntry *entry,
gpointer user_data);
void
on_enter_password_activate (GtkEntry *entry,
gpointer user_data);
void
on_submit_button_activate (GtkButton *button,
gpointer user_data);
void
on_status_window_show (GtkWidget *widget,
gpointer user_data);
gboolean updatestats (gpointer data);
void
on_status2_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
create_menu(GtkWidget *menu);
void
tray_icon_load(GtkWidget *icon, const gchar *file);
void
clicked (GtkWidget *widget, GdkEventButton *event, gpointer data);
void
tray_create (GtkWidget *mainwindow);
void
tray_status_selected(GtkMenuItem *menuitem, gpointer mainwindow);
void
tray_disconnect_selected(GtkMenuItem *menuitem, gpointer mainwindow);
void
tray_connect_selected(GtkMenuItem *menuitem, gpointer mainwindow);
int check_for_events(GString *buf);
int check_for_string(gchar *pattern, gchar *subject);
void
on_enter_group_password_activate (GtkEntry *entry,
gpointer user_data);
void
on_group_pw_cancel_button_clicked (GtkButton *button,
gpointer user_data);
void
on_group_pw_submit_button_clicked (GtkButton *button,
gpointer user_data);
static gint
sort_node (gchar* a, gchar *b);
GList*
glist_strings_sort (GList * list);
int
is_network_connection_active();
|