Mercurial > pidgin
annotate src/gaim.h @ 445:e4c34ca88d9b
[gaim-migrate @ 455]
Hehehehehe
Libfaim got updated, gaim got updated. btw, gaim/faim can't sign in yet,
don't ask me why. it's not my fault.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 29 Jun 2000 20:40:28 +0000 |
parents | 7d5f91c1ff20 |
children | 6a92cd7322cc |
rev | line source |
---|---|
1 | 1 /* |
2 * gaim | |
3 * | |
4 * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net> | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
19 * | |
20 */ | |
21 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
22 #ifdef HAVE_CONFIG_H |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
23 #include "../config.h" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
24 #endif |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
25 #include <gtk/gtk.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
26 #include <time.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
27 #include <stdio.h> |
1 | 28 #ifdef USE_APPLET |
29 #include <applet-widget.h> | |
30 #endif /* USE_APPLET */ | |
31 | |
32 | |
33 /* | |
34 1. gethostbyname(); | |
35 2. connect(); | |
36 3. toc_signon(); | |
37 4. toc_wait_signon(); | |
38 5. toc_wait_config(); | |
39 6. actually done.. | |
40 */ | |
41 | |
42 #define STATE_OFFLINE 0 | |
43 #define STATE_FLAPON 1 | |
44 #define STATE_SIGNON_REQUEST 2 | |
45 #define STATE_SIGNON_ACK 3 | |
46 #define STATE_CONFIG 4 | |
47 #define STATE_ONLINE 5 | |
48 | |
49 #define BROWSER_NETSCAPE 0 | |
50 #define BROWSER_KFM 1 | |
51 #define BROWSER_MANUAL 2 | |
52 #define BROWSER_INTERNAL 3 | |
53 | |
54 #define UC_AOL 1 | |
55 #define UC_ADMIN 2 | |
56 #define UC_UNCONFIRMED 4 | |
57 #define UC_NORMAL 8 | |
58 #define UC_UNAVAILABLE 16 | |
59 | |
60 #define IDLE_NONE 0 | |
61 #define IDLE_GAIM 1 | |
62 #define IDLE_SYSTEM 2 | |
63 | |
64 #define WFLAG_SEND 1 | |
65 #define WFLAG_RECV 2 | |
66 #define WFLAG_AUTO 4 | |
67 #define WFLAG_WHISPER 8 | |
68 #define WFLAG_FILERECV 16 | |
69 #define WFLAG_SYSTEM 32 | |
70 | |
71 #define AUTO_RESPONSE "<AUTO-REPLY> : " | |
72 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
73 #define PLUGIN_DIR ".gaim/plugins/" |
1 | 74 |
75 #define REG_EMAIL_ADDR "gaiminfo@blueridge.net" | |
76 #define REG_SRVR "blueridge.net" | |
77 #define REG_PORT 25 | |
78 | |
348
29f95b2b3e38
[gaim-migrate @ 358]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
345
diff
changeset
|
79 #ifndef USE_APPLET |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
80 #ifdef ENABLE_NLS |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
81 # include <libintl.h> |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
82 # define _(x) gettext(x) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
83 # ifdef gettext_noop |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
84 # define N_(String) gettext_noop (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
85 # else |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
86 # define N_(String) (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
87 # endif |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
88 #else |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
89 # define N_(String) (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
90 # define _(x) (x) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
91 #endif |
348
29f95b2b3e38
[gaim-migrate @ 358]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
345
diff
changeset
|
92 #endif |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
93 |
1 | 94 extern struct prefs_data *pd; |
95 extern struct debug_window *dw; | |
96 | |
97 struct aim_user { | |
98 char username[64]; | |
99 char password[32]; | |
100 char user_info[2048]; | |
101 }; | |
102 | |
103 struct save_pos { | |
104 int x; | |
105 int y; | |
106 int width; | |
107 int height; | |
108 int xoff; | |
109 int yoff; | |
110 }; | |
111 | |
112 struct prefs_data { | |
113 GtkWidget *window; | |
114 GtkWidget *away_list; | |
115 struct away_message *cur_message; | |
116 GtkWidget *away_text; | |
117 char *edited_message; | |
118 GtkWidget *browser_entry; | |
119 GtkWidget *nwbutton; | |
120 GtkWidget *aim_host_entry; | |
121 GtkWidget *aim_port_entry; | |
122 GtkWidget *login_host_entry; | |
123 GtkWidget *login_port_entry; | |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
337
diff
changeset
|
124 GtkWidget *proxy_host_entry; |
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
337
diff
changeset
|
125 GtkWidget *proxy_port_entry; |
1 | 126 |
127 }; | |
128 | |
129 | |
130 struct option_set { | |
131 int *options; | |
132 int option; | |
133 }; | |
134 | |
135 struct g_url { | |
136 char address[255]; | |
137 int port; | |
138 char page[255]; | |
139 }; | |
140 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
141 #ifdef GAIM_PLUGINS |
1 | 142 struct gaim_plugin { |
425
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
143 char *name; |
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
144 char *filename; |
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
145 char *description; |
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
146 void *handle; |
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
147 int remove; |
1 | 148 }; |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
149 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
150 enum gaim_event { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
151 event_signon = 0, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
152 event_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
153 event_away, |
136
4e91b92f91a7
[gaim-migrate @ 146]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
133
diff
changeset
|
154 event_back, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
155 event_im_recv, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
156 event_im_send, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
157 event_buddy_signon, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
158 event_buddy_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
159 event_buddy_away, |
136
4e91b92f91a7
[gaim-migrate @ 146]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
133
diff
changeset
|
160 event_buddy_back, |
115
890cfb7d8fdb
[gaim-migrate @ 125]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
109
diff
changeset
|
161 event_blist_update, |
391
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
162 event_chat_invited, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
163 event_chat_join, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
164 event_chat_leave, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
165 event_chat_buddy_join, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
166 event_chat_buddy_leave, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
167 event_chat_recv, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
168 event_chat_send, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
169 event_warned, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
170 event_error, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
171 event_quit, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
172 /* any others? it's easy to add... */ |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
173 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
174 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
175 struct gaim_callback { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
176 void *handle; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
177 enum gaim_event event; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
178 void *function; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
179 void *data; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
180 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
181 |
142
fbabd28795d2
[gaim-migrate @ 152]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
139
diff
changeset
|
182 extern GList *plugins; |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
183 extern GList *callbacks; |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
184 #endif |
1 | 185 |
186 struct buddy { | |
187 char name[80]; | |
188 GtkWidget *item; | |
189 GtkWidget *label; | |
190 GtkWidget *pix; | |
191 GtkWidget *idletime; | |
192 int present; | |
193 int log_timer; | |
194 int evil; | |
195 time_t signon; | |
196 time_t idle; | |
197 int uc; | |
198 }; | |
199 | |
200 struct log_conversation { | |
201 char name[80]; | |
202 char filename[512]; | |
203 struct log_conversation *next; | |
204 }; | |
205 | |
206 struct buddy_pounce { | |
207 char name[80]; | |
208 char message[2048]; | |
209 int popup; | |
210 int sendim; | |
211 }; | |
212 | |
213 struct away_message { | |
214 char name[80]; | |
215 char message[2048]; | |
216 }; | |
217 | |
218 struct group { | |
219 GtkWidget *item; | |
220 GtkWidget *label; | |
221 GtkWidget *tree; | |
222 char name[80]; | |
223 GList *members; | |
224 }; | |
225 | |
226 struct buddy_chat { | |
227 GtkWidget *window; | |
228 GtkWidget *text; | |
229 GtkWidget *list; | |
230 GtkWidget *entry; | |
344
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
231 GtkWidget *italic; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
232 GtkWidget *bold; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
233 GtkWidget *underline; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
234 GtkWidget *palette; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
235 GtkWidget *link; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
236 GtkWidget *strike; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
237 GtkWidget *font; |
371
9d22acf6db73
[gaim-migrate @ 381]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
238 GtkWidget *wood; |
344
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
239 GtkWidget *color_dialog; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
240 GtkWidget *font_dialog; |
1 | 241 GList *in_room; |
242 GList *ignored; | |
243 int makesound; | |
244 int id; | |
245 char name[80]; | |
246 }; | |
247 | |
248 struct chat_room { | |
249 char name[128]; | |
250 int exchange; | |
251 }; | |
252 | |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
253 struct chat_connection { |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
254 char *name; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
255 int fd; /* this is redundant since we have the conn below */ |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
256 struct aim_conn_t *conn; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
257 int inpa; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
258 }; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
259 |
1 | 260 struct debug_window { |
261 GtkWidget *window; | |
262 GtkWidget *entry; | |
263 }; | |
264 | |
265 struct conversation { | |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
266 GtkWidget *window; |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
267 char name[80]; |
1 | 268 GtkWidget *text; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
269 GtkWidget *entry; |
1 | 270 GtkWidget *italic; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
271 GtkWidget *bold; |
1 | 272 GtkWidget *underline; |
273 GtkWidget *palette; | |
274 GtkWidget *link; | |
344
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
275 GtkWidget *add_button; |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
276 GtkWidget *log_button; |
1 | 277 GtkWidget *strike; |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
278 GtkWidget *font; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
279 GtkWidget *color_dialog; |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
280 GtkWidget *font_dialog; |
1 | 281 |
308
e5fa88351dc8
[gaim-migrate @ 318]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
296
diff
changeset
|
282 char current_fontface[64]; |
e5fa88351dc8
[gaim-migrate @ 318]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
296
diff
changeset
|
283 char current_fontname[64]; |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
284 int makesound; |
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
285 time_t sent_away; |
1 | 286 }; |
287 | |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
288 struct file_header { |
210
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
289 char magic[4]; /* 0 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
290 short hdrlen; /* 4 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
291 short hdrtype; /* 6 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
292 char bcookie[8]; /* 8 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
293 short encrypt; /* 16 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
294 short compress; /* 18 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
295 short totfiles; /* 20 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
296 short filesleft; /* 22 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
297 short totparts; /* 24 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
298 short partsleft; /* 26 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
299 long totsize; /* 28 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
300 long size; /* 32 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
301 long modtime; /* 36 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
302 long checksum; /* 40 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
303 long rfrcsum; /* 44 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
304 long rfsize; /* 48 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
305 long cretime; /* 52 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
306 long rfcsum; /* 56 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
307 long nrecvd; /* 60 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
308 long recvcsum; /* 64 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
309 char idstring[32]; /* 68 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
310 char flags; /* 100 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
311 char lnameoffset; /* 101 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
312 char lsizeoffset; /* 102 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
313 char dummy[69]; /* 103 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
314 char macfileinfo[16]; /* 172 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
315 short nencode; /* 188 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
316 short nlanguage; /* 190 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
317 char name[64]; /* 192 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
318 /* 256 */ |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
319 }; |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
320 |
1 | 321 struct file_transfer { |
322 GtkWidget *window; | |
323 char *cookie; | |
324 char *ip; | |
325 char *message; | |
326 int port; | |
327 int size; | |
328 int accepted; | |
329 char *filename; | |
330 char *lfilename; | |
331 char *user; | |
332 FILE *f; | |
333 int fd; | |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
334 char UID[2048]; |
1 | 335 }; |
336 | |
337 struct sflap_hdr { | |
338 unsigned char ast; | |
339 unsigned char type; | |
340 unsigned short seqno; | |
341 unsigned short len; | |
342 }; | |
343 | |
344 struct signon { | |
345 unsigned int ver; | |
346 unsigned short tag; | |
347 unsigned short namelen; | |
348 char username[80]; | |
349 }; | |
350 | |
351 #define LOGIN_STEPS 5 | |
352 | |
353 #define CONVERSATION_TITLE "Gaim - Conversation with %s" | |
354 #define LOG_CONVERSATION_TITLE "Gaim - Conversation with %s (logged)" | |
355 | |
196
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
356 #define VOICE_UID "09461341-4C7F-11D1-8222-444553540000" |
197
24f0fef56a73
[gaim-migrate @ 207]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
196
diff
changeset
|
357 #define FILE_SEND_UID "09461343-4C7F-11D1-8222-444553540000" |
196
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
358 #define IMAGE_UID "09461345-4C7F-11D1-8222-444553540000" |
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
359 #define B_ICON_UID "09461346-4C7F-11D1-8222-444553540000" |
197
24f0fef56a73
[gaim-migrate @ 207]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
196
diff
changeset
|
360 #define FILE_GET_UID "09461348-4C7F-11D1-8222-444553540000" |
1 | 361 |
362 #define LAGOMETER_STR "123CHECKLAG456" | |
363 | |
364 #define AOL_SRCHSTR "/community/aimcheck.adp/url=" | |
365 | |
366 /* These should all be runtime selectable */ | |
367 | |
368 #define TOC_HOST "toc.oscar.aol.com" | |
369 #define TOC_PORT 9898 | |
370 #define AUTH_HOST "login.oscar.aol.com" | |
371 #define AUTH_PORT 5190 | |
372 #define LANGUAGE "english" | |
373 | |
374 #define MSG_LEN 2048 | |
375 /* The above should normally be the same as BUF_LEN, | |
376 * but just so we're explictly asking for the max message | |
377 * length. */ | |
378 #define BUF_LEN MSG_LEN | |
379 #define BUF_LONG BUF_LEN * 2 | |
380 | |
381 | |
382 #define TYPE_SIGNON 1 | |
383 #define TYPE_DATA 2 | |
384 #define TYPE_ERROR 3 | |
385 #define TYPE_SIGNOFF 4 | |
386 #define TYPE_KEEPALIVE 5 | |
387 | |
436 | 388 #define REVISION "gaim:$Revision: 446 $" |
1 | 389 #define FLAPON "FLAPON\r\n\r\n" |
390 | |
391 #define ROAST "Tic/Toc" | |
392 | |
393 | |
394 #define BUDDY_ARRIVE 0 | |
395 #define BUDDY_LEAVE 1 | |
396 #define SEND 2 | |
397 #define RECEIVE 3 | |
398 #define FIRST_RECEIVE 4 | |
399 #define AWAY 5 | |
400 | |
401 | |
402 #ifdef USE_APPLET | |
10 | 403 extern gboolean buddy_created; |
1 | 404 extern GtkWidget *applet; |
405 #endif /* USE_APPLET */ | |
406 | |
407 /* Globals in oscar.c */ | |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
408 extern struct aim_session_t *gaim_sess; |
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
409 extern struct aim_conn_t *gaim_conn; |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
410 extern GList *oscar_chats; |
1 | 411 |
412 /* Globals in server.c */ | |
413 extern int correction_time; | |
414 | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
415 /* Globals in dialog.c */ |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
416 extern char *fontface; |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
417 extern char *fontname; |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
418 |
1 | 419 /* Globals in network.c */ |
420 | |
421 /* Globals in toc.c */ | |
422 | |
423 /* Globals in aim.c */ | |
424 extern GList *permit; /* The list of people permitted */ | |
425 extern GList *deny; /* The list of people denied */ | |
426 extern GList *log_conversations; | |
427 extern GList *buddy_pounces; | |
428 extern GList *away_messages; | |
429 extern GList *groups; | |
430 extern GList *buddy_chats; | |
431 extern GList *conversations; | |
432 extern GList *chat_rooms; | |
433 extern GtkWidget *mainwindow; | |
434 extern char *quad_addr; | |
435 extern char toc_addy[16]; | |
436 | |
437 /* Globals in away.c */ | |
438 extern struct away_message *awaymessage; | |
439 extern GtkWidget *awaymenu; | |
440 | |
441 /* Globals in buddy.c */ | |
442 extern int permdeny; | |
443 extern GtkWidget *buddies; | |
444 extern GtkWidget *bpmenu; | |
445 extern GtkWidget *blist; | |
446 | |
447 extern int general_options; | |
448 #define OPT_GEN_ENTER_SENDS 0x00000001 | |
449 #define OPT_GEN_AUTO_LOGIN 0x00000002 | |
450 #define OPT_GEN_LOG_ALL 0x00000004 | |
451 #define OPT_GEN_STRIP_HTML 0x00000008 | |
452 #define OPT_GEN_APP_BUDDY_SHOW 0x00000010 | |
453 #define OPT_GEN_POPUP_WINDOWS 0x00000020 | |
454 #define OPT_GEN_SEND_LINKS 0x00000040 | |
455 #define OPT_GEN_SHOW_LAGMETER 0x00000080 | |
456 #define OPT_GEN_DEBUG 0x00000100 | |
457 #define OPT_GEN_REMEMBER_PASS 0x00000200 | |
458 #define OPT_GEN_REGISTERED 0x00000400 | |
459 #define OPT_GEN_BROWSER_POPUP 0x00000800 | |
460 #define OPT_GEN_SAVED_WINDOWS 0x00001000 | |
461 #define OPT_GEN_DISCARD_WHEN_AWAY 0x00002000 | |
340
0d9cfc3579a5
[gaim-migrate @ 350]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
462 #define OPT_GEN_NEAR_APPLET 0x00004000 |
206 | 463 #define OPT_GEN_CHECK_SPELLING 0x00008000 |
373
1d29321843b0
[gaim-migrate @ 383]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
371
diff
changeset
|
464 #define OPT_GEN_POPUP_CHAT 0x00010000 |
375
1eae69f076d2
[gaim-migrate @ 385]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
373
diff
changeset
|
465 #define OPT_GEN_BACK_ON_IM 0x00020000 |
423
0d4e80bdb96b
[gaim-migrate @ 433]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
411
diff
changeset
|
466 #define OPT_GEN_USE_OSCAR 0x00040000 |
0d4e80bdb96b
[gaim-migrate @ 433]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
411
diff
changeset
|
467 extern int USE_OSCAR; |
180 | 468 |
1 | 469 extern int display_options; |
470 #define OPT_DISP_SHOW_TIME 0x00000001 | |
471 #define OPT_DISP_SHOW_GRPNUM 0x00000002 | |
472 #define OPT_DISP_SHOW_PIXMAPS 0x00000004 | |
473 #define OPT_DISP_SHOW_IDLETIME 0x00000008 | |
474 #define OPT_DISP_SHOW_BUTTON_XPM 0x00000010 | |
475 #define OPT_DISP_IGNORE_COLOUR 0x00000020 | |
476 #define OPT_DISP_SHOW_LOGON 0x00000040 | |
82 | 477 #define OPT_DISP_DEVIL_PIXMAPS 0x00000080 |
337 | 478 #define OPT_DISP_SHOW_SMILEY 0x00000100 |
436 | 479 #define OPT_DISP_SHOW_BUDDYTICKER 0x00000200 |
337 | 480 |
1 | 481 extern int sound_options; |
482 #define OPT_SOUND_LOGIN 0x00000001 | |
483 #define OPT_SOUND_LOGOUT 0x00000002 | |
484 #define OPT_SOUND_RECV 0x00000004 | |
485 #define OPT_SOUND_SEND 0x00000008 | |
486 #define OPT_SOUND_FIRST_RCV 0x00000010 | |
487 #define OPT_SOUND_WHEN_AWAY 0x00000020 | |
109
45bcfa3b584c
[gaim-migrate @ 119]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
107
diff
changeset
|
488 #define OPT_SOUND_SILENT_SIGNON 0x00000040 |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
337
diff
changeset
|
489 #define OPT_SOUND_THROUGH_GNOME 0x00000080 |
371
9d22acf6db73
[gaim-migrate @ 381]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
490 #define OPT_SOUND_CHAT_JOIN 0x00000100 |
9d22acf6db73
[gaim-migrate @ 381]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
491 #define OPT_SOUND_CHAT_SAY 0x00000200 |
1 | 492 |
493 | |
494 extern int font_options; | |
495 #define OPT_FONT_BOLD 0x00000001 | |
496 #define OPT_FONT_ITALIC 0x00000002 | |
497 #define OPT_FONT_UNDERLINE 0x00000008 | |
498 #define OPT_FONT_STRIKE 0x00000010 | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
499 #define OPT_FONT_FACE 0x00000020 |
1 | 500 |
501 #define DEFAULT_INFO "Visit the GAIM website at <A HREF=\"http://www.marko.net/gaim\">http://www.marko.net/gaim</A>." | |
502 | |
503 extern int report_idle; | |
504 extern int web_browser; | |
505 extern struct aim_user *current_user; | |
506 extern GList *aim_users; | |
507 extern char web_command[2048]; | |
508 extern char debug_buff[BUF_LONG]; | |
509 extern char aim_host[512]; | |
510 extern int aim_port; | |
511 extern char login_host[512]; | |
512 extern int login_port; | |
513 extern struct save_pos blist_pos; | |
180 | 514 extern char latest_ver[25]; |
1 | 515 |
516 /* Functions in about.c */ | |
517 extern void show_about(GtkWidget *, void *); | |
518 | |
519 | |
520 /* Functions in buddy_chat.c */ | |
521 extern void join_chat(); | |
522 extern void chat_write(struct buddy_chat *, char *, int, char *); | |
523 extern void add_chat_buddy(struct buddy_chat *, char *); | |
524 extern void remove_chat_buddy(struct buddy_chat *, char *); | |
525 extern void show_new_buddy_chat(struct buddy_chat *); | |
526 extern void setup_buddy_chats(); | |
425
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
527 extern void do_quit(); |
1 | 528 |
529 | |
530 | |
531 /* Functions in html.c */ | |
532 extern char *fix_url(char *); | |
533 extern struct g_url parse_url(char *); | |
534 extern char *grab_url(char *); | |
535 extern gchar *strip_html(gchar *); | |
536 | |
537 /* Functions in util.c */ | |
538 extern char *normalize(const char *); | |
539 extern int escape_text(char *); | |
26 | 540 extern char *escape_text2(char *); |
1 | 541 extern int escape_message(char *msg); |
542 extern char *frombase64(char *); | |
543 extern gint clean_pid(void *); | |
544 extern char *date(); | |
545 extern gint linkify_text(char *); | |
546 extern void aol_icon(GdkWindow *); | |
547 extern int query_state(); | |
548 extern void set_state(int); | |
373
1d29321843b0
[gaim-migrate @ 383]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
371
diff
changeset
|
549 extern FILE *open_log_file (char *); |
1 | 550 extern char *sec_to_text(int); |
551 extern struct aim_user *find_user(const char *); | |
70 | 552 extern char *full_date(); |
180 | 553 extern void check_gaim_versions(); |
209 | 554 extern void spell_checker(GtkWidget *); |
1 | 555 |
556 /* Functions in server.c */ | |
557 /* input to serv */ | |
558 extern int serv_login(char *, char *); | |
559 extern void serv_close(); | |
560 extern void serv_touch_idle(); | |
561 extern void serv_finish_login(); | |
562 extern void serv_send_im(char *, char *, int); | |
563 extern void serv_get_info(char *); | |
249
810c595258c8
[gaim-migrate @ 259]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
247
diff
changeset
|
564 extern void serv_get_away_msg(char *); |
1 | 565 extern void serv_get_dir(char *); |
566 extern void serv_set_idle(int); | |
567 extern void serv_set_info(char *); | |
568 extern void serv_set_away(char *); | |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
569 extern void serv_change_passwd(char *, char *); |
1 | 570 extern void serv_add_buddy(char *); |
571 extern void serv_add_buddies(GList *); | |
572 extern void serv_remove_buddy(char *); | |
573 extern void serv_add_permit(char *); | |
574 extern void serv_add_deny(char *); | |
575 extern void serv_set_permit_deny(); | |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
576 extern void serv_build_config(char *, int); |
1 | 577 extern void serv_save_config(); |
578 extern void serv_warn(char *, int); | |
579 extern void serv_set_dir(char *, char *, char *, char *, char *, char *, char *, int); | |
580 extern void serv_dir_search(char *, char *, char *, char *, char *, char *, char *, char *); | |
581 extern void serv_accept_chat(int); | |
582 extern void serv_join_chat(int, char *); | |
583 extern void serv_chat_invite(int, char *, char *); | |
584 extern void serv_chat_leave(int); | |
585 extern void serv_chat_whisper(int, char *, char *); | |
586 extern void serv_chat_send(int, char *); | |
587 | |
588 /* output from serv */ | |
589 extern void serv_got_update(char *, int, int, time_t, time_t, int); | |
590 extern void serv_got_im(char *, char *, int); | |
591 extern void serv_got_eviled(char *, int); | |
592 extern void serv_got_chat_invite(char *, int, char *, char *); | |
593 extern void serv_got_joined_chat(int, char *); | |
594 extern void serv_got_chat_left(int); | |
595 extern void serv_got_chat_in(int, char *, int, char *); | |
411
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
596 extern void serv_rvous_accept(char *, char *, char *); |
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
597 extern void serv_rvous_cancel(char *, char *, char *); |
1 | 598 |
599 /* Functions in conversation.c */ | |
600 extern void write_to_conv(struct conversation *, char *, int); | |
601 extern void show_conv(struct conversation *); | |
602 extern struct conversation *new_conversation(char *); | |
603 extern struct conversation *find_conversation(char *); | |
604 extern void delete_conversation(struct conversation *); | |
605 extern void surround(GtkWidget *, char *, char *); | |
606 extern int is_logging(char *); | |
607 extern void set_state_lock(int ); | |
608 extern void rm_log(struct log_conversation *a); | |
609 extern struct log_conversation *find_log_info(char *name); | |
610 extern void remove_tags(GtkWidget *entry, char *tag); | |
611 extern void update_log_convs(); | |
612 extern void update_transparency(); | |
613 extern void update_font_buttons(); | |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
614 extern void toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle); |
344
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
615 extern void do_bold(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
616 extern void do_italic(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
617 extern void do_underline(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
618 extern void do_strike(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
619 extern void do_small(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
620 extern void do_normal(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
621 extern void do_big(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
622 extern void do_link(GtkWidget *, GtkWidget *); |
411
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
623 extern int invert_tags(GtkWidget *, char *, char *, int); |
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
624 extern void quiet_set(GtkWidget *, int); |
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
625 extern int count_tag(GtkWidget *, char *, char *); |
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
626 extern void set_font_face(GtkWidget *, struct conversation *); |
1 | 627 |
628 /* Functions in network.c */ | |
629 extern unsigned int *get_address(char *); | |
630 extern int connect_address(unsigned int, unsigned short); | |
631 | |
632 /* Functions in oscar.c */ | |
633 extern int oscar_login(char *, char *); | |
242
14fc16f579c8
[gaim-migrate @ 252]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
237
diff
changeset
|
634 extern void oscar_close(); |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
635 extern struct chat_connection *find_oscar_chat(char *name); |
1 | 636 |
637 /* Functions in toc.c */ | |
638 extern void toc_close(); | |
639 extern int toc_login(char *, char *); | |
640 extern int toc_wait_signon(void); | |
641 extern char *toc_wait_config(void); | |
642 extern int sflap_send(char *, int , int ); | |
296
a88b889b692b
[gaim-migrate @ 306]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
253
diff
changeset
|
643 extern void parse_toc_buddy_list(char *, int); |
1 | 644 |
645 | |
646 /* Functions in buddy.c */ | |
647 extern void destroy_buddy(); | |
648 extern void update_num_groups(); | |
649 extern void update_show_idlepix(); | |
650 extern void update_button_pix(); | |
651 extern void update_all_buddies(); | |
652 extern void show_buddy_list(); | |
653 extern void refresh_buddy_window(); | |
654 extern void toc_build_config(char *, int len); | |
655 extern void signoff(); | |
656 extern void do_im_back(); | |
657 extern void set_buddy(struct buddy *); | |
658 extern struct person *add_person(char *, char *); | |
659 extern struct group *add_group(char *); | |
660 extern void add_category(char *); | |
661 extern void build_edit_tree(); | |
662 extern void build_permit_tree(); | |
663 extern void remove_person(struct group *, struct buddy *); | |
664 extern void remove_category(struct group *); | |
665 extern void do_pounce(char *); | |
666 extern void do_bp_menu(); | |
667 extern struct buddy *find_buddy(char *); | |
668 extern struct group *find_group(char *); | |
669 extern struct group *find_group_by_buddy(char *); | |
670 extern void remove_buddy(struct group *, struct buddy *); | |
671 extern struct buddy *add_buddy(char *, char *); | |
672 extern void remove_group(struct group *); | |
673 extern void update_lagometer(int); | |
674 | |
675 /* Functions in away.c */ | |
676 extern void rem_away_mess(GtkWidget *, struct away_message *); | |
677 extern void do_away_message(GtkWidget *, struct away_message *); | |
678 extern void do_away_menu(); | |
679 extern void away_list_unclicked(GtkWidget *, struct away_message *); | |
680 extern void away_list_clicked(GtkWidget *, struct away_message *); | |
681 | |
682 /* Functions in aim.c */ | |
683 extern void hide_login_progress(char *); | |
684 extern void set_login_progress(int, char *); | |
685 extern void show_login(); | |
423
0d4e80bdb96b
[gaim-migrate @ 433]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
411
diff
changeset
|
686 extern void gaim_setup(); |
1 | 687 #ifdef USE_APPLET |
107
55faf2e3a134
[gaim-migrate @ 117]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
94
diff
changeset
|
688 extern void createOnlinePopup(); |
1 | 689 extern void applet_show_login(AppletWidget *, gpointer); |
690 extern void gnome_buddy_show(); | |
691 extern void gnome_buddy_hide(); | |
692 extern void gnome_buddy_set_pos( gint x, gint y ); | |
693 GtkRequisition gnome_buddy_get_dimentions(); | |
694 #endif | |
695 | |
696 | |
697 /* Functions in sound.c */ | |
698 extern void play_sound(int); | |
699 | |
700 | |
701 #ifdef GAIM_PLUGINS | |
702 /* Functions in plugins.c */ | |
139
c009c4f4ad02
[gaim-migrate @ 149]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
136
diff
changeset
|
703 extern void show_plugins(GtkWidget *, gpointer); |
142
fbabd28795d2
[gaim-migrate @ 152]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
139
diff
changeset
|
704 extern void load_plugin (char *); |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
705 extern void gaim_signal_connect(void *, enum gaim_event, void *, void *); |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
706 extern void gaim_signal_disconnect(void *, enum gaim_event, void *); |
425
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
707 extern void gaim_plugin_unload(void *); |
1 | 708 #endif |
709 | |
710 /* Functions in prefs.c */ | |
711 extern void debug_print( char * chars ); | |
712 extern void set_general_option(GtkWidget *, int *); | |
713 extern void set_option(GtkWidget *, int *); | |
714 extern void show_prefs(); | |
715 | |
716 /* Functions in gaimrc.c */ | |
717 extern void set_defaults(); | |
718 extern void load_prefs(); | |
719 extern void save_prefs(); | |
720 | |
721 | |
722 /* Functions in dialogs.c */ | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
723 extern void do_export(GtkWidget *, void *); |
1 | 724 extern void show_warn_dialog(char *); |
725 extern void do_error_dialog(char *, char *); | |
726 extern void show_error_dialog(char *); | |
727 extern void show_im_dialog(GtkWidget *, GtkWidget *); | |
728 extern void show_add_buddy(char *, char *); | |
729 extern void show_add_perm(); | |
730 extern void destroy_all_dialogs(); | |
731 extern void show_export_dialog(); | |
732 extern void show_import_dialog(); | |
733 extern void show_new_bp(); | |
734 extern void show_log_dialog(char *); | |
735 extern void show_find_email(); | |
736 extern void show_find_info(); | |
737 extern void g_show_info (char *); | |
247
f6e8ea29b24f
[gaim-migrate @ 257]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
242
diff
changeset
|
738 extern void g_show_info_text (char *); |
1 | 739 extern void show_register_dialog(); |
740 extern void show_set_info(); | |
741 extern void show_set_dir(); | |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
742 extern void show_color_dialog(struct conversation *c, GtkWidget *color); |
1 | 743 extern void create_away_mess(GtkWidget *, void *); |
744 extern void show_ee_dialog(int); | |
745 extern void show_add_link(GtkWidget *, GtkWidget *); | |
146 | 746 extern void show_change_passwd(); |
411
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
747 extern void do_import(GtkWidget *, void *); |
a330017b3aa4
[gaim-migrate @ 421]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
748 extern int bud_list_cache_exists(); |
1 | 749 |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
750 extern void show_font_dialog(struct conversation *c, GtkWidget *font); |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
751 extern void cancel_font(GtkWidget *widget, struct conversation *c); |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
752 extern void apply_font(GtkWidget *widget, GtkFontSelection *fontsel); |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
753 |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
754 /* Functions in rvous.c */ |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
755 extern void accept_file_dialog(struct file_transfer *); |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
756 |
1 | 757 /* Functions in browser.c */ |
758 extern void open_url(GtkWidget *, char *); | |
759 extern void open_url_nw(GtkWidget *, char *); | |
760 extern void add_bookmark(GtkWidget *, char *); | |
761 | |
762 /* functions for appletmgr */ | |
763 extern char * getConfig(); | |
764 |