comparison src/server.c @ 5872:059d95c67cda

[gaim-migrate @ 6304] The legendary Header File Cleanup! Files now only include what they need. This should reduce the number of files that must recompile when a header file changes. It's a lot nicer. Trust me on it. I also added a couple new header files. I hope I didn't break TOO much! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 23:21:02 +0000
parents dbed8c87f750
children b3c412884a22
comparison
equal deleted inserted replaced
5871:508adf90fbb9 5872:059d95c67cda
16 * You should have received a copy of the GNU General Public License 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 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 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 * 19 *
20 */ 20 */
21 21 #include "internal.h"
22 #ifdef HAVE_CONFIG_H 22 #include "conversation.h"
23 #include <config.h> 23 #include "debug.h"
24 #endif 24 #include "log.h"
25 #include <time.h> 25 #include "multi.h"
26 #include <stdio.h> 26 #include "notify.h"
27 #include <stdlib.h> 27 #include "pounce.h"
28 #include <string.h> 28 #include "prefs.h"
29 #include <sys/types.h> 29 #include "prpl.h"
30 #include <sys/stat.h> 30 #include "request.h"
31 #include <sys/time.h> 31 #include "server.h"
32 #include <unistd.h> 32 #include "sound.h"
33 #include <errno.h> 33 #include "util.h"
34
35 /* XXX UI Stuff */
36 #include "gaim.h"
34 #include "gtkimhtml.h" 37 #include "gtkimhtml.h"
35 #include "prpl.h" 38 #include "gtkconv.h"
36 #include "multi.h" 39 #include "gtkutils.h"
37 #include "gaim.h" 40 #include "ui.h"
38 #include "sound.h"
39 #include "pounce.h"
40 #include "notify.h"
41 #include "prefs.h"
42 41
43 void serv_login(GaimAccount *account) 42 void serv_login(GaimAccount *account)
44 { 43 {
45 GaimPlugin *p = gaim_find_prpl(gaim_account_get_protocol(account)); 44 GaimPlugin *p = gaim_find_prpl(gaim_account_get_protocol(account));
46 GaimPluginProtocolInfo *prpl_info = NULL; 45 GaimPluginProtocolInfo *prpl_info = NULL;
1191 1190
1192 gaim_notify_info(NULL, NULL, buf2, NULL); 1191 gaim_notify_info(NULL, NULL, buf2, NULL);
1193 } 1192 }
1194 1193
1195 void serv_got_typing(GaimConnection *gc, const char *name, int timeout, 1194 void serv_got_typing(GaimConnection *gc, const char *name, int timeout,
1196 int state) { 1195 GaimTypingState state) {
1197 1196
1198 struct buddy *b; 1197 struct buddy *b;
1199 GaimConversation *cnv = gaim_find_conversation(name); 1198 GaimConversation *cnv = gaim_find_conversation(name);
1200 GaimIm *im; 1199 GaimIm *im;
1201 1200
1228 if (!c) 1227 if (!c)
1229 return; 1228 return;
1230 1229
1231 im = GAIM_IM(c); 1230 im = GAIM_IM(c);
1232 1231
1233 if (im->typing_state == NOT_TYPING) 1232 if (im->typing_state == GAIM_NOT_TYPING)
1234 return; 1233 return;
1235 1234
1236 gaim_im_stop_typing_timeout(im); 1235 gaim_im_stop_typing_timeout(im);
1237 gaim_im_set_typing_state(im, NOT_TYPING); 1236 gaim_im_set_typing_state(im, GAIM_NOT_TYPING);
1238 gaim_im_update_typing(im); 1237 gaim_im_update_typing(im);
1239 1238
1240 b = gaim_find_buddy(gc->account, name); 1239 b = gaim_find_buddy(gc->account, name);
1241 1240
1242 if (b != NULL) 1241 if (b != NULL)