Mercurial > pidgin
annotate src/gaim.h @ 134:00c1ee609648
[gaim-migrate @ 144]
Heh, whoops. Silly bug. If you only have one plugin loaded, and it's
configurable, and you unload it, the 'configure' button wouldn't deactivate,
and so you could still click on it, and it would segfault.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 19 Apr 2000 02:23:30 +0000 |
parents | e277d5f0c1dd |
children | 4e91b92f91a7 |
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 | |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
22 #include <gtk/gtk.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
23 #include <time.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
24 #include <stdio.h> |
1 | 25 #ifdef USE_APPLET |
26 #include <applet-widget.h> | |
27 #endif /* USE_APPLET */ | |
28 | |
29 | |
30 /* | |
31 1. gethostbyname(); | |
32 2. connect(); | |
33 3. toc_signon(); | |
34 4. toc_wait_signon(); | |
35 5. toc_wait_config(); | |
36 6. actually done.. | |
37 */ | |
38 | |
39 #define STATE_OFFLINE 0 | |
40 #define STATE_FLAPON 1 | |
41 #define STATE_SIGNON_REQUEST 2 | |
42 #define STATE_SIGNON_ACK 3 | |
43 #define STATE_CONFIG 4 | |
44 #define STATE_ONLINE 5 | |
45 | |
46 #define BROWSER_NETSCAPE 0 | |
47 #define BROWSER_KFM 1 | |
48 #define BROWSER_MANUAL 2 | |
49 #define BROWSER_INTERNAL 3 | |
50 | |
51 #define UC_AOL 1 | |
52 #define UC_ADMIN 2 | |
53 #define UC_UNCONFIRMED 4 | |
54 #define UC_NORMAL 8 | |
55 #define UC_UNAVAILABLE 16 | |
56 | |
57 #define IDLE_NONE 0 | |
58 #define IDLE_GAIM 1 | |
59 #define IDLE_SYSTEM 2 | |
60 | |
61 #define WFLAG_SEND 1 | |
62 #define WFLAG_RECV 2 | |
63 #define WFLAG_AUTO 4 | |
64 #define WFLAG_WHISPER 8 | |
65 #define WFLAG_FILERECV 16 | |
66 #define WFLAG_SYSTEM 32 | |
67 | |
68 #define AUTO_RESPONSE "<AUTO-REPLY> : " | |
69 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
70 #define PLUGIN_DIR ".gaim/plugins/" |
1 | 71 |
72 #define REG_EMAIL_ADDR "gaiminfo@blueridge.net" | |
73 #define REG_SRVR "blueridge.net" | |
74 #define REG_PORT 25 | |
75 | |
76 extern struct prefs_data *pd; | |
77 extern struct debug_window *dw; | |
78 | |
79 struct aim_user { | |
80 char username[64]; | |
81 char password[32]; | |
82 char user_info[2048]; | |
83 }; | |
84 | |
85 struct save_pos { | |
86 int x; | |
87 int y; | |
88 int width; | |
89 int height; | |
90 int xoff; | |
91 int yoff; | |
92 }; | |
93 | |
94 struct prefs_data { | |
95 GtkWidget *window; | |
96 GtkWidget *away_list; | |
97 struct away_message *cur_message; | |
98 GtkWidget *away_text; | |
99 char *edited_message; | |
100 GtkWidget *browser_entry; | |
101 GtkWidget *nwbutton; | |
102 GtkWidget *aim_host_entry; | |
103 GtkWidget *aim_port_entry; | |
104 GtkWidget *login_host_entry; | |
105 GtkWidget *login_port_entry; | |
106 GtkWidget *http_proxy_host_entry; | |
107 GtkWidget *http_proxy_port_entry; | |
108 | |
109 }; | |
110 | |
111 | |
112 struct option_set { | |
113 int *options; | |
114 int option; | |
115 }; | |
116 | |
117 struct g_url { | |
118 char address[255]; | |
119 int port; | |
120 char page[255]; | |
121 }; | |
122 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
123 #ifdef GAIM_PLUGINS |
1 | 124 struct gaim_plugin { |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
125 char *name; |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
126 char *filename; |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
127 char *description; |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
128 void *handle; |
1 | 129 }; |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
130 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
131 enum gaim_event { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
132 event_signon = 0, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
133 event_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
134 event_away, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
135 event_im_recv, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
136 event_im_send, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
137 event_buddy_signon, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
138 event_buddy_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
139 event_buddy_away, |
115
890cfb7d8fdb
[gaim-migrate @ 125]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
109
diff
changeset
|
140 event_blist_update, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
141 /* any others? it's easy to add... */ |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
142 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
143 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
144 struct gaim_callback { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
145 void *handle; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
146 enum gaim_event event; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
147 void *function; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
148 void *data; |
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 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
151 extern GList *callbacks; |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
152 #endif |
1 | 153 |
154 struct buddy { | |
155 char name[80]; | |
156 GtkWidget *item; | |
157 GtkWidget *label; | |
158 GtkWidget *pix; | |
159 GtkWidget *idletime; | |
160 int present; | |
161 int log_timer; | |
162 int evil; | |
163 time_t signon; | |
164 time_t idle; | |
165 int uc; | |
166 }; | |
167 | |
168 struct log_conversation { | |
169 char name[80]; | |
170 char filename[512]; | |
171 struct log_conversation *next; | |
172 }; | |
173 | |
174 struct buddy_pounce { | |
175 char name[80]; | |
176 char message[2048]; | |
177 int popup; | |
178 int sendim; | |
179 }; | |
180 | |
181 struct away_message { | |
182 char name[80]; | |
183 char message[2048]; | |
184 }; | |
185 | |
186 struct group { | |
187 GtkWidget *item; | |
188 GtkWidget *label; | |
189 GtkWidget *tree; | |
190 char name[80]; | |
191 GList *members; | |
192 }; | |
193 | |
194 struct buddy_chat { | |
195 GtkWidget *window; | |
196 GtkWidget *text; | |
197 GtkWidget *list; | |
198 GtkWidget *entry; | |
199 GList *in_room; | |
200 GList *ignored; | |
201 int makesound; | |
202 int id; | |
203 char name[80]; | |
204 }; | |
205 | |
206 struct chat_room { | |
207 char name[128]; | |
208 int exchange; | |
209 }; | |
210 | |
211 struct debug_window { | |
212 GtkWidget *window; | |
213 GtkWidget *entry; | |
214 }; | |
215 | |
216 struct conversation { | |
217 GtkWidget *window; | |
218 char name[80]; | |
219 GtkWidget *text; | |
220 GtkWidget *entry; | |
221 GtkWidget *italic; | |
222 GtkWidget *bold; | |
223 GtkWidget *underline; | |
224 GtkWidget *palette; | |
225 GtkWidget *link; | |
226 GtkWidget *add_button; | |
227 GtkWidget *log_button; | |
228 GtkWidget *strike; | |
229 | |
230 int makesound; | |
231 time_t sent_away; | |
232 }; | |
233 | |
234 struct file_transfer { | |
235 GtkWidget *window; | |
236 char *cookie; | |
237 char *ip; | |
238 char *message; | |
239 int port; | |
240 int size; | |
241 int accepted; | |
242 char *filename; | |
243 char *lfilename; | |
244 char *user; | |
245 FILE *f; | |
246 int fd; | |
247 }; | |
248 | |
249 struct sflap_hdr { | |
250 unsigned char ast; | |
251 unsigned char type; | |
252 unsigned short seqno; | |
253 unsigned short len; | |
254 }; | |
255 | |
256 struct signon { | |
257 unsigned int ver; | |
258 unsigned short tag; | |
259 unsigned short namelen; | |
260 char username[80]; | |
261 }; | |
262 | |
263 #define LOGIN_STEPS 5 | |
264 | |
265 #define CONVERSATION_TITLE "Gaim - Conversation with %s" | |
266 #define LOG_CONVERSATION_TITLE "Gaim - Conversation with %s (logged)" | |
267 | |
268 #define FILETRANS_UID "09461343-4C7F-11D1-8222-444553540000" | |
269 | |
270 #define LAGOMETER_STR "123CHECKLAG456" | |
271 | |
272 #define AOL_SRCHSTR "/community/aimcheck.adp/url=" | |
273 | |
274 /* These should all be runtime selectable */ | |
275 | |
276 #define TOC_HOST "toc.oscar.aol.com" | |
277 #define TOC_PORT 9898 | |
278 #define AUTH_HOST "login.oscar.aol.com" | |
279 #define AUTH_PORT 5190 | |
280 #define LANGUAGE "english" | |
281 | |
282 #define MSG_LEN 2048 | |
283 /* The above should normally be the same as BUF_LEN, | |
284 * but just so we're explictly asking for the max message | |
285 * length. */ | |
286 #define BUF_LEN MSG_LEN | |
287 #define BUF_LONG BUF_LEN * 2 | |
288 | |
289 | |
290 #define TYPE_SIGNON 1 | |
291 #define TYPE_DATA 2 | |
292 #define TYPE_ERROR 3 | |
293 #define TYPE_SIGNOFF 4 | |
294 #define TYPE_KEEPALIVE 5 | |
295 | |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
296 #define REVISION "gaim:$Revision: 143 $" |
1 | 297 #define FLAPON "FLAPON\r\n\r\n" |
298 | |
299 #define ROAST "Tic/Toc" | |
300 | |
301 | |
302 #define BUDDY_ARRIVE 0 | |
303 #define BUDDY_LEAVE 1 | |
304 #define SEND 2 | |
305 #define RECEIVE 3 | |
306 #define FIRST_RECEIVE 4 | |
307 #define AWAY 5 | |
308 | |
309 | |
310 #ifdef USE_APPLET | |
10 | 311 extern gboolean buddy_created; |
1 | 312 extern GtkWidget *applet; |
313 #endif /* USE_APPLET */ | |
314 | |
315 /* Globals in oscar.c */ | |
316 extern struct aim_conn_t *gaim_conn; | |
317 | |
318 /* Globals in server.c */ | |
319 extern int correction_time; | |
320 | |
321 /* Globals in network.c */ | |
322 | |
323 /* Globals in toc.c */ | |
324 | |
325 /* Globals in aim.c */ | |
326 extern GList *permit; /* The list of people permitted */ | |
327 extern GList *deny; /* The list of people denied */ | |
328 extern GList *log_conversations; | |
329 extern GList *buddy_pounces; | |
330 extern GList *away_messages; | |
331 extern GList *groups; | |
332 extern GList *buddy_chats; | |
333 extern GList *conversations; | |
334 extern GList *chat_rooms; | |
335 extern GtkWidget *mainwindow; | |
336 extern char *quad_addr; | |
337 extern char toc_addy[16]; | |
338 | |
339 /* Globals in away.c */ | |
340 extern struct away_message *awaymessage; | |
341 extern GtkWidget *awaymenu; | |
342 | |
343 /* Globals in buddy.c */ | |
344 extern int permdeny; | |
345 extern GtkWidget *buddies; | |
346 extern GtkWidget *bpmenu; | |
347 extern GtkWidget *blist; | |
348 | |
349 extern int general_options; | |
350 #define OPT_GEN_ENTER_SENDS 0x00000001 | |
351 #define OPT_GEN_AUTO_LOGIN 0x00000002 | |
352 #define OPT_GEN_LOG_ALL 0x00000004 | |
353 #define OPT_GEN_STRIP_HTML 0x00000008 | |
354 #define OPT_GEN_APP_BUDDY_SHOW 0x00000010 | |
355 #define OPT_GEN_POPUP_WINDOWS 0x00000020 | |
356 #define OPT_GEN_SEND_LINKS 0x00000040 | |
357 #define OPT_GEN_SHOW_LAGMETER 0x00000080 | |
358 #define OPT_GEN_DEBUG 0x00000100 | |
359 #define OPT_GEN_REMEMBER_PASS 0x00000200 | |
360 #define OPT_GEN_REGISTERED 0x00000400 | |
361 #define OPT_GEN_BROWSER_POPUP 0x00000800 | |
362 #define OPT_GEN_SAVED_WINDOWS 0x00001000 | |
363 #define OPT_GEN_DISCARD_WHEN_AWAY 0x00002000 | |
364 | |
365 extern int display_options; | |
366 #define OPT_DISP_SHOW_TIME 0x00000001 | |
367 #define OPT_DISP_SHOW_GRPNUM 0x00000002 | |
368 #define OPT_DISP_SHOW_PIXMAPS 0x00000004 | |
369 #define OPT_DISP_SHOW_IDLETIME 0x00000008 | |
370 #define OPT_DISP_SHOW_BUTTON_XPM 0x00000010 | |
371 #define OPT_DISP_IGNORE_COLOUR 0x00000020 | |
372 #define OPT_DISP_SHOW_LOGON 0x00000040 | |
82 | 373 #define OPT_DISP_DEVIL_PIXMAPS 0x00000080 |
1 | 374 |
375 extern int sound_options; | |
376 #define OPT_SOUND_LOGIN 0x00000001 | |
377 #define OPT_SOUND_LOGOUT 0x00000002 | |
378 #define OPT_SOUND_RECV 0x00000004 | |
379 #define OPT_SOUND_SEND 0x00000008 | |
380 #define OPT_SOUND_FIRST_RCV 0x00000010 | |
381 #define OPT_SOUND_WHEN_AWAY 0x00000020 | |
109
45bcfa3b584c
[gaim-migrate @ 119]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
107
diff
changeset
|
382 #define OPT_SOUND_SILENT_SIGNON 0x00000040 |
1 | 383 |
384 | |
385 extern int font_options; | |
386 #define OPT_FONT_BOLD 0x00000001 | |
387 #define OPT_FONT_ITALIC 0x00000002 | |
388 #define OPT_FONT_UNDERLINE 0x00000008 | |
389 #define OPT_FONT_STRIKE 0x00000010 | |
390 | |
391 #define DEFAULT_INFO "Visit the GAIM website at <A HREF=\"http://www.marko.net/gaim\">http://www.marko.net/gaim</A>." | |
392 | |
393 extern int report_idle; | |
394 extern int web_browser; | |
395 extern struct aim_user *current_user; | |
396 extern GList *aim_users; | |
397 extern char web_command[2048]; | |
398 extern char debug_buff[BUF_LONG]; | |
399 extern char aim_host[512]; | |
400 extern int aim_port; | |
401 extern char login_host[512]; | |
402 extern int login_port; | |
403 extern struct save_pos blist_pos; | |
404 | |
405 /* Functions in about.c */ | |
406 extern void show_about(GtkWidget *, void *); | |
407 | |
408 | |
409 /* Functions in buddy_chat.c */ | |
410 extern void join_chat(); | |
411 extern void chat_write(struct buddy_chat *, char *, int, char *); | |
412 extern void add_chat_buddy(struct buddy_chat *, char *); | |
413 extern void remove_chat_buddy(struct buddy_chat *, char *); | |
414 extern void show_new_buddy_chat(struct buddy_chat *); | |
415 extern void setup_buddy_chats(); | |
416 | |
417 | |
418 | |
419 /* Functions in html.c */ | |
420 extern char *fix_url(char *); | |
421 extern struct g_url parse_url(char *); | |
422 extern char *grab_url(char *); | |
423 extern gchar *strip_html(gchar *); | |
424 | |
425 /* Functions in util.c */ | |
426 extern char *normalize(const char *); | |
427 extern int escape_text(char *); | |
26 | 428 extern char *escape_text2(char *); |
1 | 429 extern int escape_message(char *msg); |
430 extern char *frombase64(char *); | |
431 extern gint clean_pid(void *); | |
432 extern char *date(); | |
433 extern gint linkify_text(char *); | |
434 extern void aol_icon(GdkWindow *); | |
435 extern int query_state(); | |
436 extern void set_state(int); | |
437 extern FILE *open_log_file (struct conversation *c); | |
438 extern char *sec_to_text(int); | |
439 extern struct aim_user *find_user(const char *); | |
70 | 440 extern char *full_date(); |
1 | 441 |
442 /* Functions in server.c */ | |
443 /* input to serv */ | |
444 extern int serv_login(char *, char *); | |
445 extern void serv_close(); | |
446 extern void serv_touch_idle(); | |
447 extern void serv_finish_login(); | |
448 extern void serv_send_im(char *, char *, int); | |
449 extern void serv_get_info(char *); | |
450 extern void serv_get_dir(char *); | |
451 extern void serv_set_idle(int); | |
452 extern void serv_set_info(char *); | |
453 extern void serv_set_away(char *); | |
454 extern void serv_add_buddy(char *); | |
455 extern void serv_add_buddies(GList *); | |
456 extern void serv_remove_buddy(char *); | |
457 extern void serv_add_permit(char *); | |
458 extern void serv_add_deny(char *); | |
459 extern void serv_set_permit_deny(); | |
460 extern void serv_save_config(); | |
461 extern void serv_warn(char *, int); | |
462 extern void serv_set_dir(char *, char *, char *, char *, char *, char *, char *, int); | |
463 extern void serv_dir_search(char *, char *, char *, char *, char *, char *, char *, char *); | |
464 extern void serv_accept_chat(int); | |
465 extern void serv_join_chat(int, char *); | |
466 extern void serv_chat_invite(int, char *, char *); | |
467 extern void serv_chat_leave(int); | |
468 extern void serv_chat_whisper(int, char *, char *); | |
469 extern void serv_chat_send(int, char *); | |
470 | |
471 /* output from serv */ | |
472 extern void serv_got_update(char *, int, int, time_t, time_t, int); | |
473 extern void serv_got_im(char *, char *, int); | |
474 extern void serv_got_eviled(char *, int); | |
475 extern void serv_got_chat_invite(char *, int, char *, char *); | |
476 extern void serv_got_joined_chat(int, char *); | |
477 extern void serv_got_chat_left(int); | |
478 extern void serv_got_chat_in(int, char *, int, char *); | |
479 | |
480 /* Functions in conversation.c */ | |
481 extern void write_to_conv(struct conversation *, char *, int); | |
482 extern void show_conv(struct conversation *); | |
483 extern struct conversation *new_conversation(char *); | |
484 extern struct conversation *find_conversation(char *); | |
485 extern void delete_conversation(struct conversation *); | |
486 extern void surround(GtkWidget *, char *, char *); | |
487 extern int is_logging(char *); | |
488 extern void set_state_lock(int ); | |
489 extern void rm_log(struct log_conversation *a); | |
490 extern struct log_conversation *find_log_info(char *name); | |
491 extern void remove_tags(GtkWidget *entry, char *tag); | |
492 extern void update_log_convs(); | |
493 extern void update_transparency(); | |
494 extern void update_font_buttons(); | |
495 | |
496 /* Functions in network.c */ | |
497 extern unsigned int *get_address(char *); | |
498 extern int connect_address(unsigned int, unsigned short); | |
499 | |
500 /* Functions in oscar.c */ | |
501 extern void oscar_close(); | |
502 extern int oscar_login(char *, char *); | |
503 | |
504 /* Functions in toc.c */ | |
505 extern void toc_close(); | |
506 extern int toc_login(char *, char *); | |
507 extern int toc_wait_signon(void); | |
508 extern char *toc_wait_config(void); | |
509 extern int sflap_send(char *, int , int ); | |
510 extern void parse_toc_buddy_list(char *); | |
511 | |
512 | |
513 /* Functions in buddy.c */ | |
514 extern void destroy_buddy(); | |
515 extern void update_num_groups(); | |
516 extern void update_show_idlepix(); | |
517 extern void update_button_pix(); | |
518 extern void update_all_buddies(); | |
519 extern void show_buddy_list(); | |
520 extern void refresh_buddy_window(); | |
521 extern void toc_build_config(char *, int len); | |
522 extern void signoff(); | |
523 extern void do_im_back(); | |
524 extern void set_buddy(struct buddy *); | |
525 extern struct person *add_person(char *, char *); | |
526 extern struct group *add_group(char *); | |
527 extern void add_category(char *); | |
528 extern void build_edit_tree(); | |
529 extern void build_permit_tree(); | |
530 extern void remove_person(struct group *, struct buddy *); | |
531 extern void remove_category(struct group *); | |
532 extern void do_pounce(char *); | |
533 extern void do_bp_menu(); | |
534 extern struct buddy *find_buddy(char *); | |
535 extern struct group *find_group(char *); | |
536 extern struct group *find_group_by_buddy(char *); | |
537 extern void remove_buddy(struct group *, struct buddy *); | |
538 extern struct buddy *add_buddy(char *, char *); | |
539 extern void remove_group(struct group *); | |
540 extern void update_lagometer(int); | |
541 | |
542 /* Functions in away.c */ | |
543 extern void rem_away_mess(GtkWidget *, struct away_message *); | |
544 extern void do_away_message(GtkWidget *, struct away_message *); | |
545 extern void do_away_menu(); | |
546 extern void away_list_unclicked(GtkWidget *, struct away_message *); | |
547 extern void away_list_clicked(GtkWidget *, struct away_message *); | |
548 | |
549 /* Functions in aim.c */ | |
550 extern void hide_login_progress(char *); | |
551 extern void set_login_progress(int, char *); | |
552 extern void show_login(); | |
553 #ifdef USE_APPLET | |
107
55faf2e3a134
[gaim-migrate @ 117]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
94
diff
changeset
|
554 extern void createOnlinePopup(); |
1 | 555 extern void applet_show_login(AppletWidget *, gpointer); |
556 extern void gnome_buddy_show(); | |
557 extern void gnome_buddy_hide(); | |
558 extern void gnome_buddy_set_pos( gint x, gint y ); | |
559 GtkRequisition gnome_buddy_get_dimentions(); | |
560 #endif | |
561 | |
562 | |
563 /* Functions in sound.c */ | |
564 extern void play_sound(int); | |
565 | |
566 | |
567 #ifdef GAIM_PLUGINS | |
568 /* Functions in plugins.c */ | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
569 extern void load_plugin (GtkWidget *, gpointer); |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
570 extern void unload_plugin(GtkWidget *, gpointer); |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
571 extern void show_plugins (GtkWidget *, gpointer); |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
572 extern void gaim_signal_connect(void *, enum gaim_event, void *, void *); |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
573 extern void gaim_signal_disconnect(void *, enum gaim_event, void *); |
1 | 574 #endif |
575 | |
576 /* Functions in prefs.c */ | |
577 extern void debug_print( char * chars ); | |
578 extern void set_general_option(GtkWidget *, int *); | |
579 extern void set_option(GtkWidget *, int *); | |
580 extern void show_prefs(); | |
581 | |
582 /* Functions in gaimrc.c */ | |
583 extern void set_defaults(); | |
584 extern void load_prefs(); | |
585 extern void save_prefs(); | |
586 | |
587 | |
588 /* Functions in dialogs.c */ | |
589 extern void show_warn_dialog(char *); | |
590 extern void do_error_dialog(char *, char *); | |
591 extern void show_error_dialog(char *); | |
592 extern void show_im_dialog(GtkWidget *, GtkWidget *); | |
593 extern void show_add_buddy(char *, char *); | |
594 extern void show_add_perm(); | |
595 extern void destroy_all_dialogs(); | |
596 extern void show_export_dialog(); | |
597 extern void show_import_dialog(); | |
598 extern void show_new_bp(); | |
599 extern void show_log_dialog(char *); | |
600 extern void show_find_email(); | |
601 extern void show_find_info(); | |
602 extern void g_show_info (char *); | |
603 extern void show_register_dialog(); | |
604 extern void show_set_info(); | |
605 extern void show_set_dir(); | |
606 extern void show_color_dialog(GtkWidget *entrye, GtkWidget *color); | |
607 extern void accept_file_dialog(struct file_transfer *); | |
608 extern void create_away_mess(GtkWidget *, void *); | |
609 extern void show_ee_dialog(int); | |
610 extern void show_add_link(GtkWidget *, GtkWidget *); | |
611 | |
612 | |
613 /* Functions in browser.c */ | |
614 extern void open_url(GtkWidget *, char *); | |
615 extern void open_url_nw(GtkWidget *, char *); | |
616 extern void add_bookmark(GtkWidget *, char *); | |
617 | |
618 /* functions for appletmgr */ | |
619 extern char * getConfig(); | |
620 |