Mercurial > pidgin
annotate src/gaim.h @ 1026:5bad25457843
[gaim-migrate @ 1036]
X-Idle support. Thanks bryner and bmiller!
Both of you guys sent me similar patches :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 26 Oct 2000 07:22:32 +0000 |
parents | d496fe2614a6 |
children | 38452403563b |
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 | |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
22 #ifndef _GAIM_GAIM_H_ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
23 #define _GAIM_GAIM_H_ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
24 |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
25 #ifdef HAVE_CONFIG_H |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
26 #include "../config.h" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
27 #endif |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
28 |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
29 #include <gtk/gtk.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
30 #include <time.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
31 #include <stdio.h> |
1 | 32 #ifdef USE_APPLET |
33 #include <applet-widget.h> | |
34 #endif /* USE_APPLET */ | |
599
ddce1742f173
[gaim-migrate @ 609]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
592
diff
changeset
|
35 #ifdef USE_GNOME |
ddce1742f173
[gaim-migrate @ 609]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
592
diff
changeset
|
36 #include <gnome.h> |
ddce1742f173
[gaim-migrate @ 609]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
592
diff
changeset
|
37 #endif |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
38 #include "aim.h" |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
39 #include "multi.h" |
1 | 40 |
41 | |
42 /* | |
43 1. gethostbyname(); | |
44 2. connect(); | |
45 3. toc_signon(); | |
46 4. toc_wait_signon(); | |
47 5. toc_wait_config(); | |
48 6. actually done.. | |
49 */ | |
50 | |
51 #define STATE_OFFLINE 0 | |
52 #define STATE_FLAPON 1 | |
53 #define STATE_SIGNON_REQUEST 2 | |
54 #define STATE_SIGNON_ACK 3 | |
55 #define STATE_CONFIG 4 | |
56 #define STATE_ONLINE 5 | |
57 | |
58 #define BROWSER_NETSCAPE 0 | |
59 #define BROWSER_KFM 1 | |
60 #define BROWSER_MANUAL 2 | |
61 #define BROWSER_INTERNAL 3 | |
733 | 62 #define BROWSER_GNOME 4 |
1 | 63 |
678
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
64 #define PERMIT_ALL 1 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
65 #define PERMIT_NONE 2 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
66 #define PERMIT_SOME 3 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
67 #define DENY_SOME 4 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
68 |
1 | 69 #define UC_AOL 1 |
70 #define UC_ADMIN 2 | |
71 #define UC_UNCONFIRMED 4 | |
72 #define UC_NORMAL 8 | |
73 #define UC_UNAVAILABLE 16 | |
74 | |
1026 | 75 #define IDLE_NONE 0 |
76 #define IDLE_GAIM 1 | |
77 #define IDLE_SYSTEM 2 | |
78 #define IDLE_SCREENSAVER 3 | |
1 | 79 |
80 #define WFLAG_SEND 1 | |
81 #define WFLAG_RECV 2 | |
82 #define WFLAG_AUTO 4 | |
83 #define WFLAG_WHISPER 8 | |
84 #define WFLAG_FILERECV 16 | |
85 #define WFLAG_SYSTEM 32 | |
86 | |
87 #define AUTO_RESPONSE "<AUTO-REPLY> : " | |
88 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
89 #define PLUGIN_DIR ".gaim/plugins/" |
1 | 90 |
91 #define REG_EMAIL_ADDR "gaiminfo@blueridge.net" | |
92 #define REG_SRVR "blueridge.net" | |
93 #define REG_PORT 25 | |
94 | |
555 | 95 #define FACE_ANGEL 0 |
96 #define FACE_BIGSMILE 1 | |
97 #define FACE_BURP 2 | |
98 #define FACE_CROSSEDLIPS 3 | |
99 #define FACE_CRY 4 | |
100 #define FACE_EMBARRASSED 5 | |
101 #define FACE_KISS 6 | |
102 #define FACE_MONEYMOUTH 7 | |
103 #define FACE_SAD 8 | |
104 #define FACE_SCREAM 9 | |
105 #define FACE_SMILE 10 | |
106 #define FACE_SMILE8 11 | |
107 #define FACE_THINK 12 | |
108 #define FACE_TONGUE 13 | |
109 #define FACE_WINK 14 | |
110 #define FACE_YELL 15 | |
111 #define FACE_TOTAL 16 | |
112 | |
599
ddce1742f173
[gaim-migrate @ 609]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
592
diff
changeset
|
113 #ifndef USE_GNOME |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
114 #ifdef ENABLE_NLS |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
115 # include <libintl.h> |
590
91f877d86ca6
[gaim-migrate @ 600]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
577
diff
changeset
|
116 # define _(x) gettext(x) |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
117 # ifdef gettext_noop |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
118 # define N_(String) gettext_noop (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
119 # else |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
120 # define N_(String) (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
121 # endif |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
122 #else |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
123 # define N_(String) (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
124 # define _(x) (x) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
125 #endif |
348
29f95b2b3e38
[gaim-migrate @ 358]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
345
diff
changeset
|
126 #endif |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
127 |
1 | 128 extern struct debug_window *dw; |
129 | |
130 struct aim_user { | |
131 char username[64]; | |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
132 char password[32]; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
133 char user_info[2048]; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
134 int options; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
135 int protocol; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
136 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
137 /* stuff for modify window */ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
138 GtkWidget *mod; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
139 GtkWidget *name; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
140 GtkWidget *pass; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
141 int tmp_options; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
142 int tmp_protocol; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
143 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
144 /* stuff for password prompt */ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
145 GtkWidget *passprmt; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
146 GtkWidget *passentry; |
1 | 147 }; |
148 | |
149 struct save_pos { | |
150 int x; | |
151 int y; | |
152 int width; | |
153 int height; | |
154 int xoff; | |
155 int yoff; | |
156 }; | |
157 | |
158 | |
159 struct option_set { | |
160 int *options; | |
161 int option; | |
162 }; | |
163 | |
164 struct g_url { | |
165 char address[255]; | |
166 int port; | |
167 char page[255]; | |
168 }; | |
169 | |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
170 enum gaim_event { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
171 event_signon = 0, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
172 event_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
173 event_away, |
136
4e91b92f91a7
[gaim-migrate @ 146]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
133
diff
changeset
|
174 event_back, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
175 event_im_recv, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
176 event_im_send, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
177 event_buddy_signon, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
178 event_buddy_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
179 event_buddy_away, |
136
4e91b92f91a7
[gaim-migrate @ 146]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
133
diff
changeset
|
180 event_buddy_back, |
1000
91b7377e7b45
[gaim-migrate @ 1010]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
988
diff
changeset
|
181 event_buddy_idle, |
91b7377e7b45
[gaim-migrate @ 1010]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
988
diff
changeset
|
182 event_buddy_unidle, |
115
890cfb7d8fdb
[gaim-migrate @ 125]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
109
diff
changeset
|
183 event_blist_update, |
391
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
184 event_chat_invited, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
185 event_chat_join, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
186 event_chat_leave, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
187 event_chat_buddy_join, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
188 event_chat_buddy_leave, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
189 event_chat_recv, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
190 event_chat_send, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
191 event_warned, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
192 event_error, |
be408b41c172
[gaim-migrate @ 401]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
375
diff
changeset
|
193 event_quit, |
808
9d61f3d01046
[gaim-migrate @ 818]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
806
diff
changeset
|
194 event_new_conversation, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
195 /* any others? it's easy to add... */ |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
196 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
197 |
885
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
198 #ifdef GAIM_PLUGINS |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
199 struct gaim_plugin { |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
200 char *name; |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
201 char *filename; |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
202 char *description; |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
203 void *handle; |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
204 int remove; |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
205 }; |
db5f5c33e83f
[gaim-migrate @ 895]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
873
diff
changeset
|
206 |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
207 struct gaim_callback { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
208 void *handle; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
209 enum gaim_event event; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
210 void *function; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
211 void *data; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
212 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
213 |
142
fbabd28795d2
[gaim-migrate @ 152]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
139
diff
changeset
|
214 extern GList *plugins; |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
215 extern GList *callbacks; |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
216 #endif |
1 | 217 |
218 struct buddy { | |
219 char name[80]; | |
710
efd72a117875
[gaim-migrate @ 720]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
705
diff
changeset
|
220 char show[80]; |
1 | 221 GtkWidget *item; |
222 GtkWidget *label; | |
223 GtkWidget *pix; | |
224 GtkWidget *idletime; | |
225 int present; | |
226 int log_timer; | |
227 int evil; | |
228 time_t signon; | |
229 time_t idle; | |
230 int uc; | |
513
eaddaa0dbbcb
[gaim-migrate @ 523]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
511
diff
changeset
|
231 u_short caps; /* woohoo! */ |
1 | 232 }; |
233 | |
234 struct log_conversation { | |
235 char name[80]; | |
236 char filename[512]; | |
237 struct log_conversation *next; | |
238 }; | |
239 | |
240 struct buddy_pounce { | |
241 char name[80]; | |
242 char message[2048]; | |
243 int popup; | |
244 int sendim; | |
245 }; | |
246 | |
247 struct away_message { | |
248 char name[80]; | |
249 char message[2048]; | |
250 }; | |
251 | |
252 struct group { | |
253 GtkWidget *item; | |
254 GtkWidget *label; | |
255 GtkWidget *tree; | |
256 char name[80]; | |
257 GList *members; | |
258 }; | |
259 | |
260 struct chat_room { | |
261 char name[128]; | |
262 int exchange; | |
263 }; | |
264 | |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
265 struct chat_connection { |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
266 char *name; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
267 int fd; /* this is redundant since we have the conn below */ |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
268 struct aim_conn_t *conn; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
269 int inpa; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
270 }; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
271 |
1 | 272 struct debug_window { |
273 GtkWidget *window; | |
274 GtkWidget *entry; | |
275 }; | |
276 | |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
277 /* struct buddy_chat went away and got merged with this. */ |
1 | 278 struct conversation { |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
279 struct gaim_connection *gc; |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
280 |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
281 /* stuff used for both IM and chat */ |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
282 GtkWidget *window; |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
283 char name[80]; |
1 | 284 GtkWidget *text; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
285 GtkWidget *entry; |
1 | 286 GtkWidget *italic; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
287 GtkWidget *bold; |
1 | 288 GtkWidget *underline; |
854 | 289 GtkWidget *fgcolorbtn; |
290 GtkWidget *bgcolorbtn; | |
1 | 291 GtkWidget *link; |
608 | 292 GtkWidget *wood; |
344
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
293 GtkWidget *log_button; |
1 | 294 GtkWidget *strike; |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
295 GtkWidget *font; |
555 | 296 GtkWidget *smiley; |
858
3de6e98e8898
[gaim-migrate @ 868]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
854
diff
changeset
|
297 GtkWidget *fg_color_dialog; |
3de6e98e8898
[gaim-migrate @ 868]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
854
diff
changeset
|
298 GtkWidget *bg_color_dialog; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
299 GtkWidget *font_dialog; |
555 | 300 GtkWidget *smiley_dialog; |
608 | 301 GtkWidget *link_dialog; |
302 GtkWidget *log_dialog; | |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
303 int makesound; |
687
02ef523db170
[gaim-migrate @ 697]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
684
diff
changeset
|
304 char fontface[128]; |
688
6b1345121dd3
[gaim-migrate @ 698]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
687
diff
changeset
|
305 int hasfont; |
697 | 306 GdkColor bgcol; |
699
f8acdd22065a
[gaim-migrate @ 709]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
697
diff
changeset
|
307 int hasbg; |
697 | 308 GdkColor fgcol; |
699
f8acdd22065a
[gaim-migrate @ 709]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
697
diff
changeset
|
309 int hasfg; |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
310 |
909
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
311 GtkWidget *send; |
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
312 |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
313 /* stuff used just for IM */ |
909
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
314 GtkWidget *info; |
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
315 GtkWidget *warn; |
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
316 GtkWidget *block; |
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
317 GtkWidget *add; |
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
318 GtkWidget *sep1; |
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
319 GtkWidget *sep2; |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
320 time_t sent_away; |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
321 GtkWidget *menu; |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
322 |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
323 /* stuff used just for chat */ |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
324 GList *in_room; |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
325 GList *ignored; |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
326 int id; |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
327 GtkWidget *list; |
834
bac7089491c1
[gaim-migrate @ 844]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
830
diff
changeset
|
328 GtkWidget *whisper; |
bac7089491c1
[gaim-migrate @ 844]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
830
diff
changeset
|
329 GtkWidget *invite; |
814
a636ac51d15b
[gaim-migrate @ 824]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
808
diff
changeset
|
330 GtkWidget *close; |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
331 |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
332 /* something to distinguish */ |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
333 gboolean is_chat; |
1 | 334 }; |
335 | |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
336 struct file_header { |
210
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
337 char magic[4]; /* 0 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
338 short hdrlen; /* 4 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
339 short hdrtype; /* 6 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
340 char bcookie[8]; /* 8 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
341 short encrypt; /* 16 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
342 short compress; /* 18 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
343 short totfiles; /* 20 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
344 short filesleft; /* 22 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
345 short totparts; /* 24 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
346 short partsleft; /* 26 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
347 long totsize; /* 28 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
348 long size; /* 32 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
349 long modtime; /* 36 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
350 long checksum; /* 40 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
351 long rfrcsum; /* 44 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
352 long rfsize; /* 48 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
353 long cretime; /* 52 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
354 long rfcsum; /* 56 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
355 long nrecvd; /* 60 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
356 long recvcsum; /* 64 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
357 char idstring[32]; /* 68 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
358 char flags; /* 100 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
359 char lnameoffset; /* 101 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
360 char lsizeoffset; /* 102 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
361 char dummy[69]; /* 103 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
362 char macfileinfo[16]; /* 172 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
363 short nencode; /* 188 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
364 short nlanguage; /* 190 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
365 char name[64]; /* 192 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
366 /* 256 */ |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
367 }; |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
368 |
1 | 369 struct file_transfer { |
370 GtkWidget *window; | |
371 char *cookie; | |
372 char *ip; | |
373 char *message; | |
374 int port; | |
375 int size; | |
376 int accepted; | |
377 char *filename; | |
378 char *lfilename; | |
379 char *user; | |
380 FILE *f; | |
381 int fd; | |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
382 char UID[2048]; |
978
563c409e26a1
[gaim-migrate @ 988]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
976
diff
changeset
|
383 struct gaim_connection *gc; |
1 | 384 }; |
385 | |
386 struct sflap_hdr { | |
387 unsigned char ast; | |
388 unsigned char type; | |
389 unsigned short seqno; | |
390 unsigned short len; | |
391 }; | |
392 | |
393 struct signon { | |
394 unsigned int ver; | |
395 unsigned short tag; | |
396 unsigned short namelen; | |
397 char username[80]; | |
398 }; | |
399 | |
400 #define LOGIN_STEPS 5 | |
401 | |
402 #define CONVERSATION_TITLE "Gaim - Conversation with %s" | |
403 #define LOG_CONVERSATION_TITLE "Gaim - Conversation with %s (logged)" | |
404 | |
196
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
405 #define VOICE_UID "09461341-4C7F-11D1-8222-444553540000" |
197
24f0fef56a73
[gaim-migrate @ 207]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
196
diff
changeset
|
406 #define FILE_SEND_UID "09461343-4C7F-11D1-8222-444553540000" |
196
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
407 #define IMAGE_UID "09461345-4C7F-11D1-8222-444553540000" |
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
408 #define B_ICON_UID "09461346-4C7F-11D1-8222-444553540000" |
197
24f0fef56a73
[gaim-migrate @ 207]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
196
diff
changeset
|
409 #define FILE_GET_UID "09461348-4C7F-11D1-8222-444553540000" |
1 | 410 |
411 #define AOL_SRCHSTR "/community/aimcheck.adp/url=" | |
412 | |
413 /* These should all be runtime selectable */ | |
414 | |
415 #define TOC_HOST "toc.oscar.aol.com" | |
416 #define TOC_PORT 9898 | |
417 #define AUTH_HOST "login.oscar.aol.com" | |
418 #define AUTH_PORT 5190 | |
419 #define LANGUAGE "english" | |
420 | |
421 #define MSG_LEN 2048 | |
422 /* The above should normally be the same as BUF_LEN, | |
423 * but just so we're explictly asking for the max message | |
424 * length. */ | |
425 #define BUF_LEN MSG_LEN | |
426 #define BUF_LONG BUF_LEN * 2 | |
427 | |
428 | |
429 #define TYPE_SIGNON 1 | |
430 #define TYPE_DATA 2 | |
431 #define TYPE_ERROR 3 | |
432 #define TYPE_SIGNOFF 4 | |
433 #define TYPE_KEEPALIVE 5 | |
434 | |
435 #define FLAPON "FLAPON\r\n\r\n" | |
436 | |
437 #define ROAST "Tic/Toc" | |
438 | |
439 | |
440 #define BUDDY_ARRIVE 0 | |
441 #define BUDDY_LEAVE 1 | |
1006
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
442 #define RECEIVE 2 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
443 #define FIRST_RECEIVE 3 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
444 #define SEND 4 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
445 #define CHAT_JOIN 5 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
446 #define CHAT_LEAVE 6 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
447 #define CHAT_YOU_SAY 7 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
448 #define CHAT_SAY 8 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
449 #define NUM_SOUNDS 9 |
1 | 450 |
451 | |
452 #ifdef USE_APPLET | |
453 extern GtkWidget *applet; | |
454 #endif /* USE_APPLET */ | |
455 | |
456 /* Globals in server.c */ | |
457 extern int correction_time; | |
458 | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
459 /* Globals in dialog.c */ |
666
71ea550c22ac
[gaim-migrate @ 676]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
660
diff
changeset
|
460 extern char fontface[64]; |
697 | 461 extern GdkColor bgcolor; |
462 extern GdkColor fgcolor; | |
555 | 463 extern int smiley_array[FACE_TOTAL]; |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
464 |
1 | 465 /* Globals in network.c */ |
466 | |
467 /* Globals in toc.c */ | |
468 | |
469 /* Globals in aim.c */ | |
470 extern GList *permit; /* The list of people permitted */ | |
471 extern GList *deny; /* The list of people denied */ | |
472 extern GList *log_conversations; | |
473 extern GList *buddy_pounces; | |
940 | 474 extern GSList *away_messages; |
475 extern GSList *groups; | |
1 | 476 extern GList *conversations; |
477 extern GList *chat_rooms; | |
478 extern GtkWidget *mainwindow; | |
479 extern char *quad_addr; | |
480 extern char toc_addy[16]; | |
481 | |
482 /* Globals in away.c */ | |
483 extern struct away_message *awaymessage; | |
484 extern GtkWidget *awaymenu; | |
485 | |
486 /* Globals in buddy.c */ | |
487 extern int permdeny; | |
488 extern GtkWidget *buddies; | |
489 extern GtkWidget *bpmenu; | |
490 extern GtkWidget *blist; | |
491 | |
492 extern int general_options; | |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
493 #define OPT_GEN_ENTER_SENDS 0x00000001 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
494 /* #define OPT_GEN_AUTO_LOGIN 0x00000002 now OPT_USR_AUTO */ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
495 #define OPT_GEN_LOG_ALL 0x00000004 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
496 #define OPT_GEN_STRIP_HTML 0x00000008 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
497 #define OPT_GEN_APP_BUDDY_SHOW 0x00000010 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
498 #define OPT_GEN_POPUP_WINDOWS 0x00000020 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
499 #define OPT_GEN_SEND_LINKS 0x00000040 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
500 #define OPT_GEN_DEBUG 0x00000100 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
501 /* #define OPT_GEN_REMEMBER_PASS 0x00000200 now OPT_USR_REM_PASS */ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
502 #define OPT_GEN_REGISTERED 0x00000400 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
503 #define OPT_GEN_BROWSER_POPUP 0x00000800 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
504 #define OPT_GEN_SAVED_WINDOWS 0x00001000 |
1 | 505 #define OPT_GEN_DISCARD_WHEN_AWAY 0x00002000 |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
506 #define OPT_GEN_NEAR_APPLET 0x00004000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
507 #define OPT_GEN_CHECK_SPELLING 0x00008000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
508 #define OPT_GEN_POPUP_CHAT 0x00010000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
509 #define OPT_GEN_BACK_ON_IM 0x00020000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
510 /* #define OPT_GEN_USE_OSCAR 0x00040000 now PROTO_OSCAR */ |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
511 #define OPT_GEN_CTL_CHARS 0x00080000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
512 #define OPT_GEN_TIK_HACK 0x00100000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
513 #define OPT_GEN_CTL_SMILEYS 0x00200000 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
514 /* #define OPT_GEN_KEEPALIVE 0x00400000 now OPT_USR_KEEPALV */ |
180 | 515 |
1 | 516 extern int display_options; |
864 | 517 #define OPT_DISP_SHOW_TIME 0x00000001 |
518 #define OPT_DISP_SHOW_GRPNUM 0x00000002 | |
519 #define OPT_DISP_SHOW_PIXMAPS 0x00000004 | |
520 #define OPT_DISP_SHOW_IDLETIME 0x00000008 | |
521 #define OPT_DISP_SHOW_BUTTON_XPM 0x00000010 | |
522 #define OPT_DISP_IGNORE_COLOUR 0x00000020 | |
523 #define OPT_DISP_SHOW_LOGON 0x00000040 | |
524 #define OPT_DISP_DEVIL_PIXMAPS 0x00000080 | |
525 #define OPT_DISP_SHOW_SMILEY 0x00000100 | |
612
12bb64b42ad1
[gaim-migrate @ 622]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
608
diff
changeset
|
526 #define OPT_DISP_SHOW_BUDDYTICKER 0x00000200 |
864 | 527 #define OPT_DISP_COOL_LOOK 0x00000400 |
528 #define OPT_DISP_CHAT_LOGON 0x00000800 | |
529 #define OPT_DISP_IGN_WHITE 0x00001000 | |
530 #define OPT_DISP_NO_BUTTONS 0x00002000 | |
915
378c862a2381
[gaim-migrate @ 925]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
909
diff
changeset
|
531 #define OPT_DISP_CONV_BUTTON_TEXT 0x00004000 |
378c862a2381
[gaim-migrate @ 925]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
909
diff
changeset
|
532 #define OPT_DISP_CHAT_BUTTON_TEXT 0x00008000 |
864 | 533 #define OPT_DISP_CONV_BIG_ENTRY 0x00010000 |
534 #define OPT_DISP_CHAT_BIG_ENTRY 0x00020000 | |
902
bd5f4997f063
[gaim-migrate @ 912]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
891
diff
changeset
|
535 #define OPT_DISP_NO_MT_GRP 0x00040000 |
915
378c862a2381
[gaim-migrate @ 925]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
909
diff
changeset
|
536 #define OPT_DISP_CONV_BUTTON_XPM 0x00080000 |
378c862a2381
[gaim-migrate @ 925]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
909
diff
changeset
|
537 #define OPT_DISP_CHAT_BUTTON_XPM 0x00100000 |
754 | 538 |
1 | 539 extern int sound_options; |
540 #define OPT_SOUND_LOGIN 0x00000001 | |
541 #define OPT_SOUND_LOGOUT 0x00000002 | |
542 #define OPT_SOUND_RECV 0x00000004 | |
543 #define OPT_SOUND_SEND 0x00000008 | |
544 #define OPT_SOUND_FIRST_RCV 0x00000010 | |
545 #define OPT_SOUND_WHEN_AWAY 0x00000020 | |
109
45bcfa3b584c
[gaim-migrate @ 119]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
107
diff
changeset
|
546 #define OPT_SOUND_SILENT_SIGNON 0x00000040 |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
337
diff
changeset
|
547 #define OPT_SOUND_THROUGH_GNOME 0x00000080 |
371
9d22acf6db73
[gaim-migrate @ 381]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
548 #define OPT_SOUND_CHAT_JOIN 0x00000100 |
9d22acf6db73
[gaim-migrate @ 381]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
549 #define OPT_SOUND_CHAT_SAY 0x00000200 |
713 | 550 #define OPT_SOUND_BEEP 0x00000400 |
1006
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
551 #define OPT_SOUND_CHAT_PART 0x00000800 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
552 #define OPT_SOUND_CHAT_YOU_SAY 0x00001000 |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
553 extern char *sound_file[NUM_SOUNDS]; |
1 | 554 |
555 extern int font_options; | |
556 #define OPT_FONT_BOLD 0x00000001 | |
557 #define OPT_FONT_ITALIC 0x00000002 | |
558 #define OPT_FONT_UNDERLINE 0x00000008 | |
559 #define OPT_FONT_STRIKE 0x00000010 | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
560 #define OPT_FONT_FACE 0x00000020 |
666
71ea550c22ac
[gaim-migrate @ 676]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
660
diff
changeset
|
561 #define OPT_FONT_FGCOL 0x00000040 |
71ea550c22ac
[gaim-migrate @ 676]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
660
diff
changeset
|
562 #define OPT_FONT_BGCOL 0x00000080 |
1 | 563 |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
564 #define OPT_USR_AUTO 0x00000001 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
565 #define OPT_USR_KEEPALV 0x00000002 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
566 #define OPT_USR_REM_PASS 0x00000004 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
567 |
527
47eb48fa2e85
[gaim-migrate @ 537]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
523
diff
changeset
|
568 #define DEFAULT_INFO "Visit the GAIM website at <A HREF=\"http://www.marko.net/gaim\">http://www.marko.net/gaim</A>." |
1 | 569 |
570 extern int report_idle; | |
571 extern int web_browser; | |
572 extern GList *aim_users; | |
573 extern char web_command[2048]; | |
574 extern char debug_buff[BUF_LONG]; | |
575 extern char aim_host[512]; | |
576 extern int aim_port; | |
577 extern char login_host[512]; | |
578 extern int login_port; | |
579 extern struct save_pos blist_pos; | |
180 | 580 extern char latest_ver[25]; |
1 | 581 |
582 /* Functions in about.c */ | |
583 extern void show_about(GtkWidget *, void *); | |
584 | |
585 | |
586 /* Functions in buddy_chat.c */ | |
587 extern void join_chat(); | |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
588 extern void chat_write(struct conversation *, char *, int, char *); |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
589 extern void add_chat_buddy(struct conversation *, char *); |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
590 extern void remove_chat_buddy(struct conversation *, char *); |
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
591 extern void show_new_buddy_chat(struct conversation *); |
1 | 592 extern void setup_buddy_chats(); |
696
97b75ed155b0
[gaim-migrate @ 706]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
694
diff
changeset
|
593 extern void build_imchat_box(gboolean); |
425
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
594 extern void do_quit(); |
834
bac7089491c1
[gaim-migrate @ 844]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
830
diff
changeset
|
595 extern void update_chat_button_pix(); |
909
9f2afe5faed5
[gaim-migrate @ 919]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
904
diff
changeset
|
596 extern void update_im_button_pix(); |
1 | 597 |
598 /* Functions in html.c */ | |
599 extern char *fix_url(char *); | |
600 extern struct g_url parse_url(char *); | |
601 extern char *grab_url(char *); | |
602 extern gchar *strip_html(gchar *); | |
603 | |
1026 | 604 /* Functions in idle.c */ |
605 extern gint check_idle(struct gaim_connection *); | |
606 | |
1 | 607 /* Functions in util.c */ |
608 extern char *normalize(const char *); | |
609 extern int escape_text(char *); | |
26 | 610 extern char *escape_text2(char *); |
1 | 611 extern int escape_message(char *msg); |
612 extern char *frombase64(char *); | |
613 extern gint clean_pid(void *); | |
614 extern char *date(); | |
615 extern gint linkify_text(char *); | |
616 extern void aol_icon(GdkWindow *); | |
373
1d29321843b0
[gaim-migrate @ 383]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
371
diff
changeset
|
617 extern FILE *open_log_file (char *); |
1 | 618 extern char *sec_to_text(int); |
619 extern struct aim_user *find_user(const char *); | |
70 | 620 extern char *full_date(); |
180 | 621 extern void check_gaim_versions(); |
209 | 622 extern void spell_checker(GtkWidget *); |
592
7c75d69a1129
[gaim-migrate @ 602]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
590
diff
changeset
|
623 extern char *away_subs(char *, char *); |
603
9b0717b4a490
[gaim-migrate @ 613]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
602
diff
changeset
|
624 extern GtkWidget *picture_button(GtkWidget *, char *, char **); |
754 | 625 extern GtkWidget *picture_button2(GtkWidget *, char *, char **, short); |
684
b29c92be568b
[gaim-migrate @ 694]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
678
diff
changeset
|
626 extern void translate_lst (FILE *, char *); |
b29c92be568b
[gaim-migrate @ 694]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
678
diff
changeset
|
627 extern void translate_blt (FILE *, char *); |
765
bf31bf916f53
[gaim-migrate @ 775]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
764
diff
changeset
|
628 extern char *stylize(gchar *, int); |
915
378c862a2381
[gaim-migrate @ 925]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
909
diff
changeset
|
629 extern int set_dispstyle (int); |
1009
d496fe2614a6
[gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1006
diff
changeset
|
630 extern void show_usage (int, char *); |
d496fe2614a6
[gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1006
diff
changeset
|
631 extern void set_first_user (char *); |
d496fe2614a6
[gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1006
diff
changeset
|
632 extern int do_auto_login (char *); |
1 | 633 |
634 /* Functions in server.c */ | |
635 /* input to serv */ | |
980
82c5865f7cfe
[gaim-migrate @ 990]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
978
diff
changeset
|
636 extern void serv_login(struct aim_user *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
637 extern void serv_close(struct gaim_connection *); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
638 extern void serv_touch_idle(struct gaim_connection *); |
1 | 639 extern void serv_finish_login(); |
980
82c5865f7cfe
[gaim-migrate @ 990]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
978
diff
changeset
|
640 extern void serv_send_im(struct gaim_connection *, char *, char *, int); |
1 | 641 extern void serv_get_info(char *); |
249
810c595258c8
[gaim-migrate @ 259]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
247
diff
changeset
|
642 extern void serv_get_away_msg(char *); |
1 | 643 extern void serv_get_dir(char *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
644 extern void serv_set_idle(struct gaim_connection *, int); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
645 extern void serv_set_info(struct gaim_connection *, char *); |
1 | 646 extern void serv_set_away(char *); |
978
563c409e26a1
[gaim-migrate @ 988]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
976
diff
changeset
|
647 extern void serv_change_passwd(struct gaim_connection *, char *, char *); |
1 | 648 extern void serv_add_buddy(char *); |
649 extern void serv_add_buddies(GList *); | |
650 extern void serv_remove_buddy(char *); | |
651 extern void serv_add_permit(char *); | |
652 extern void serv_add_deny(char *); | |
653 extern void serv_set_permit_deny(); | |
710
efd72a117875
[gaim-migrate @ 720]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
705
diff
changeset
|
654 extern void serv_build_config(char *, int, gboolean); |
1 | 655 extern void serv_save_config(); |
976
2586b2a3725e
[gaim-migrate @ 986]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
975
diff
changeset
|
656 extern void serv_warn(struct gaim_connection *, char *, int); |
1 | 657 extern void serv_set_dir(char *, char *, char *, char *, char *, char *, char *, int); |
658 extern void serv_dir_search(char *, char *, char *, char *, char *, char *, char *, char *); | |
964
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
659 extern void serv_accept_chat(struct gaim_connection *, int); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
660 extern void serv_join_chat(struct gaim_connection *, int, char *); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
661 extern void serv_chat_invite(struct gaim_connection *, int, char *, char *); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
662 extern void serv_chat_leave(struct gaim_connection *, int); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
663 extern void serv_chat_whisper(struct gaim_connection *, int, char *, char *); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
664 extern void serv_chat_send(struct gaim_connection *, int, char *); |
1 | 665 |
666 /* output from serv */ | |
513
eaddaa0dbbcb
[gaim-migrate @ 523]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
511
diff
changeset
|
667 extern void serv_got_update(char *, int, int, time_t, time_t, int, u_short); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
668 extern void serv_got_im(struct gaim_connection *, char *, char *, int); |
1 | 669 extern void serv_got_eviled(char *, int); |
964
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
670 extern void serv_got_chat_invite(struct gaim_connection *, char *, int, char *, char *); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
671 extern void serv_got_joined_chat(struct gaim_connection *, int, char *); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
672 extern void serv_got_chat_left(struct gaim_connection *, int); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
673 extern void serv_got_chat_in(struct gaim_connection *, int, char *, int, char *); |
978
563c409e26a1
[gaim-migrate @ 988]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
976
diff
changeset
|
674 extern void serv_rvous_accept(struct gaim_connection *, char *, char *, char *); |
563c409e26a1
[gaim-migrate @ 988]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
976
diff
changeset
|
675 extern void serv_rvous_cancel(struct gaim_connection *, char *, char *, char *); |
1 | 676 |
677 /* Functions in conversation.c */ | |
602
02ea095a972a
[gaim-migrate @ 612]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
599
diff
changeset
|
678 extern void write_html_with_smileys(GtkWidget *, GtkWidget *, char *); |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
679 extern void write_to_conv(struct conversation *, char *, int, char *); |
1 | 680 extern void show_conv(struct conversation *); |
681 extern struct conversation *new_conversation(char *); | |
682 extern struct conversation *find_conversation(char *); | |
683 extern void delete_conversation(struct conversation *); | |
684 extern void surround(GtkWidget *, char *, char *); | |
685 extern int is_logging(char *); | |
686 extern void set_state_lock(int ); | |
687 extern void rm_log(struct log_conversation *a); | |
688 extern struct log_conversation *find_log_info(char *name); | |
689 extern void remove_tags(GtkWidget *entry, char *tag); | |
690 extern void update_log_convs(); | |
691 extern void update_transparency(); | |
692 extern void update_font_buttons(); | |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
693 extern void toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle); |
344
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
694 extern void do_bold(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
695 extern void do_italic(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
696 extern void do_underline(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
697 extern void do_strike(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
698 extern void do_small(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
699 extern void do_normal(GtkWidget *, GtkWidget *); |
2434adbb8703
[gaim-migrate @ 354]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
340
diff
changeset
|
700 extern void do_big(GtkWidget *, GtkWidget *); |
666
71ea550c22ac
[gaim-migrate @ 676]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
660
diff
changeset
|
701 extern void set_font_face(char *, struct conversation *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
702 extern void redo_convo_menus(); |
1 | 703 |
704 /* Functions in network.c */ | |
705 extern unsigned int *get_address(char *); | |
706 extern int connect_address(unsigned int, unsigned short); | |
707 | |
708 /* Functions in oscar.c */ | |
980
82c5865f7cfe
[gaim-migrate @ 990]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
978
diff
changeset
|
709 extern void oscar_login(struct aim_user *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
710 extern void oscar_close(struct gaim_connection *); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
711 extern struct chat_connection *find_oscar_chat(struct gaim_connection *, char *name); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
712 extern void update_keepalive(struct gaim_connection *, gboolean); |
1 | 713 |
714 /* Functions in toc.c */ | |
715 extern void toc_close(); | |
980
82c5865f7cfe
[gaim-migrate @ 990]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
978
diff
changeset
|
716 extern void toc_login(struct aim_user *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
717 extern int toc_wait_signon(struct gaim_connection *); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
718 extern char *toc_wait_config(struct gaim_connection *); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
719 extern int sflap_send(struct gaim_connection *, char *, int , int ); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
720 extern void parse_toc_buddy_list(struct gaim_connection *, char *, int); |
1 | 721 |
722 | |
723 /* Functions in buddy.c */ | |
724 extern void destroy_buddy(); | |
725 extern void update_num_groups(); | |
726 extern void update_show_idlepix(); | |
727 extern void update_button_pix(); | |
728 extern void update_all_buddies(); | |
729 extern void show_buddy_list(); | |
730 extern void refresh_buddy_window(); | |
710
efd72a117875
[gaim-migrate @ 720]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
705
diff
changeset
|
731 extern void toc_build_config(char *, int len, gboolean); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
732 extern void signoff(struct gaim_connection *); |
966
f7886476f9d9
[gaim-migrate @ 976]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
964
diff
changeset
|
733 extern void signoff_all(GtkWidget *, gpointer); |
1 | 734 extern void do_im_back(); |
735 extern void set_buddy(struct buddy *); | |
736 extern struct person *add_person(char *, char *); | |
737 extern struct group *add_group(char *); | |
738 extern void add_category(char *); | |
739 extern void build_edit_tree(); | |
740 extern void remove_person(struct group *, struct buddy *); | |
741 extern void remove_category(struct group *); | |
742 extern void do_pounce(char *); | |
743 extern void do_bp_menu(); | |
744 extern struct buddy *find_buddy(char *); | |
745 extern struct group *find_group(char *); | |
746 extern struct group *find_group_by_buddy(char *); | |
747 extern void remove_buddy(struct group *, struct buddy *); | |
710
efd72a117875
[gaim-migrate @ 720]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
705
diff
changeset
|
748 extern struct buddy *add_buddy(char *, char *, char *); |
1 | 749 extern void remove_group(struct group *); |
750 extern void update_lagometer(int); | |
751 | |
752 /* Functions in away.c */ | |
753 extern void rem_away_mess(GtkWidget *, struct away_message *); | |
754 extern void do_away_message(GtkWidget *, struct away_message *); | |
755 extern void do_away_menu(); | |
756 extern void away_list_unclicked(GtkWidget *, struct away_message *); | |
757 extern void away_list_clicked(GtkWidget *, struct away_message *); | |
758 | |
759 /* Functions in aim.c */ | |
760 extern void show_login(); | |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
761 extern void gaim_setup(struct gaim_connection *gc); |
1 | 762 #ifdef USE_APPLET |
107
55faf2e3a134
[gaim-migrate @ 117]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
94
diff
changeset
|
763 extern void createOnlinePopup(); |
1 | 764 extern void applet_show_login(AppletWidget *, gpointer); |
765 GtkRequisition gnome_buddy_get_dimentions(); | |
766 #endif | |
767 | |
768 | |
769 /* Functions in sound.c */ | |
770 extern void play_sound(int); | |
771 | |
784
4c292b3f74ea
[gaim-migrate @ 794]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
780
diff
changeset
|
772 /* Functions in perl.c */ |
4c292b3f74ea
[gaim-migrate @ 794]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
780
diff
changeset
|
773 #ifdef USE_PERL |
4c292b3f74ea
[gaim-migrate @ 794]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
780
diff
changeset
|
774 extern void perl_init(); |
800
022048cde898
[gaim-migrate @ 810]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
798
diff
changeset
|
775 extern void perl_autoload(); |
784
4c292b3f74ea
[gaim-migrate @ 794]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
780
diff
changeset
|
776 extern int perl_load_file(char *); |
4c292b3f74ea
[gaim-migrate @ 794]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
780
diff
changeset
|
777 extern void perl_end(); |
806
67bdecdecbb7
[gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
800
diff
changeset
|
778 extern int perl_event(char *, char *); |
798
9dc39872e1f9
[gaim-migrate @ 808]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
797
diff
changeset
|
779 extern void load_perl_script(GtkWidget *, gpointer); |
9dc39872e1f9
[gaim-migrate @ 808]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
797
diff
changeset
|
780 extern void unload_perl_scripts(GtkWidget *, gpointer); |
9dc39872e1f9
[gaim-migrate @ 808]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
797
diff
changeset
|
781 extern void list_perl_scripts(GtkWidget *, gpointer); |
784
4c292b3f74ea
[gaim-migrate @ 794]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
780
diff
changeset
|
782 #endif |
1 | 783 |
780
c714def9cebb
[gaim-migrate @ 790]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
765
diff
changeset
|
784 /* Functions in plugins.c */ |
1 | 785 #ifdef GAIM_PLUGINS |
139
c009c4f4ad02
[gaim-migrate @ 149]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
136
diff
changeset
|
786 extern void show_plugins(GtkWidget *, gpointer); |
142
fbabd28795d2
[gaim-migrate @ 152]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
139
diff
changeset
|
787 extern void load_plugin (char *); |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
788 extern void gaim_signal_connect(void *, enum gaim_event, void *, void *); |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
789 extern void gaim_signal_disconnect(void *, enum gaim_event, void *); |
425
ae7c762775cd
[gaim-migrate @ 435]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
790 extern void gaim_plugin_unload(void *); |
1 | 791 #endif |
797
c13e78ae0f86
[gaim-migrate @ 807]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
784
diff
changeset
|
792 extern char *event_name(enum gaim_event); |
1000
91b7377e7b45
[gaim-migrate @ 1010]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
988
diff
changeset
|
793 extern void plugin_event(enum gaim_event, void *, void *, void *, void *); |
1 | 794 |
795 /* Functions in prefs.c */ | |
796 extern void debug_print( char * chars ); | |
970 | 797 extern void debug_printf( char * fmt, ... ); |
1 | 798 extern void set_general_option(GtkWidget *, int *); |
799 extern void set_option(GtkWidget *, int *); | |
800 extern void show_prefs(); | |
652
4d3285caa191
[gaim-migrate @ 662]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
623
diff
changeset
|
801 extern void show_debug(GtkObject *); |
678
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
802 extern void build_permit_tree(); |
873
789df4b47508
[gaim-migrate @ 883]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
864
diff
changeset
|
803 extern void update_color(GtkWidget *, GtkWidget *); |
652
4d3285caa191
[gaim-migrate @ 662]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
623
diff
changeset
|
804 extern GtkWidget *prefs_away_list; |
873
789df4b47508
[gaim-migrate @ 883]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
864
diff
changeset
|
805 extern GtkWidget *pref_fg_picture; |
789df4b47508
[gaim-migrate @ 883]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
864
diff
changeset
|
806 extern GtkWidget *pref_bg_picture; |
789df4b47508
[gaim-migrate @ 883]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
864
diff
changeset
|
807 |
1 | 808 |
809 /* Functions in gaimrc.c */ | |
917 | 810 extern void set_defaults(int); |
1 | 811 extern void load_prefs(); |
812 extern void save_prefs(); | |
813 | |
814 | |
815 /* Functions in dialogs.c */ | |
710
efd72a117875
[gaim-migrate @ 720]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
705
diff
changeset
|
816 extern void alias_dialog(struct buddy *); |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
817 extern void do_export(GtkWidget *, void *); |
976
2586b2a3725e
[gaim-migrate @ 986]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
975
diff
changeset
|
818 extern void show_warn_dialog(struct gaim_connection *, char *); |
1 | 819 extern void do_error_dialog(char *, char *); |
820 extern void show_error_dialog(char *); | |
935
5e6ca3dd4d02
[gaim-migrate @ 945]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
930
diff
changeset
|
821 extern void show_im_dialog(); |
5e6ca3dd4d02
[gaim-migrate @ 945]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
930
diff
changeset
|
822 extern void show_info_dialog(); |
1 | 823 extern void show_add_buddy(char *, char *); |
577
aa9a8bcddd80
[gaim-migrate @ 587]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
575
diff
changeset
|
824 extern void show_add_group(); |
1 | 825 extern void show_add_perm(); |
826 extern void destroy_all_dialogs(); | |
827 extern void show_export_dialog(); | |
828 extern void show_import_dialog(); | |
829 extern void show_new_bp(); | |
608 | 830 extern void show_log_dialog(struct conversation *); |
1 | 831 extern void show_find_email(); |
832 extern void show_find_info(); | |
833 extern void g_show_info (char *); | |
247
f6e8ea29b24f
[gaim-migrate @ 257]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
242
diff
changeset
|
834 extern void g_show_info_text (char *); |
1 | 835 extern void show_set_info(); |
836 extern void show_set_dir(); | |
858
3de6e98e8898
[gaim-migrate @ 868]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
854
diff
changeset
|
837 extern void show_fgcolor_dialog(struct conversation *c, GtkWidget *color); |
3de6e98e8898
[gaim-migrate @ 868]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
854
diff
changeset
|
838 extern void show_bgcolor_dialog(struct conversation *c, GtkWidget *color); |
3de6e98e8898
[gaim-migrate @ 868]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
854
diff
changeset
|
839 extern void cancel_fgcolor(GtkWidget *widget, struct conversation *c); |
3de6e98e8898
[gaim-migrate @ 868]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
854
diff
changeset
|
840 extern void cancel_bgcolor(GtkWidget *widget, struct conversation *c); |
1 | 841 extern void create_away_mess(GtkWidget *, void *); |
842 extern void show_ee_dialog(int); | |
608 | 843 extern void show_add_link(GtkWidget *,struct conversation *); |
146 | 844 extern void show_change_passwd(); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
845 extern void do_import(GtkWidget *, struct gaim_connection *); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
846 extern int bud_list_cache_exists(struct gaim_connection *); |
555 | 847 extern void show_smiley_dialog(struct conversation *, GtkWidget *); |
569 | 848 extern void close_smiley_dialog(GtkWidget *widget, struct conversation *c); |
849 extern void set_smiley_array(GtkWidget *widget, int smiley_type); | |
850 extern void insert_smiley_text(GtkWidget *widget, struct conversation *c); | |
608 | 851 extern void cancel_log(GtkWidget *, struct conversation *); |
852 extern void cancel_link(GtkWidget *, struct conversation *); | |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
853 extern void show_font_dialog(struct conversation *c, GtkWidget *font); |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
854 extern void cancel_font(GtkWidget *widget, struct conversation *c); |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
855 extern void apply_font(GtkWidget *widget, GtkFontSelection *fontsel); |
728 | 856 extern void set_color_selection(GtkWidget *selection, GdkColor color); |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
857 |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
858 /* Functions in rvous.c */ |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
859 extern void accept_file_dialog(struct file_transfer *); |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
860 |
1 | 861 /* Functions in browser.c */ |
862 extern void open_url(GtkWidget *, char *); | |
863 extern void open_url_nw(GtkWidget *, char *); | |
864 extern void add_bookmark(GtkWidget *, char *); | |
865 | |
866 /* functions for appletmgr */ | |
867 extern char * getConfig(); | |
868 | |
604
0b1a132e0f75
[gaim-migrate @ 614]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
603
diff
changeset
|
869 /* fucntions in ticker.c */ |
0b1a132e0f75
[gaim-migrate @ 614]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
603
diff
changeset
|
870 void SetTickerPrefs(); |
0b1a132e0f75
[gaim-migrate @ 614]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
603
diff
changeset
|
871 void BuddyTickerSignOff(); |
0b1a132e0f75
[gaim-migrate @ 614]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
603
diff
changeset
|
872 void BuddyTickerAddUser(char *, GdkPixmap *, GdkBitmap *); |
0b1a132e0f75
[gaim-migrate @ 614]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
603
diff
changeset
|
873 void BuddyTickerSetPixmap(char *, GdkPixmap *, GdkBitmap *); |
0b1a132e0f75
[gaim-migrate @ 614]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
603
diff
changeset
|
874 void BuddyTickerSignoff(); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
875 |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
876 #endif /* _GAIM_GAIM_H_ */ |