comparison src/protocols/trepia/trepia.c @ 6087:6e24de5efdb2

[gaim-migrate @ 6546] "Man I'd like to violate her ANSI C" This should fix some odd tobase64edness. Thanks to Paco-Paco for telling us how to fix it 7 times. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 11 Jul 2003 04:38:40 +0000
parents c28dea25983c
children 8f94cce8faa5
comparison
equal deleted inserted replaced
6086:8aad1be2e4d4 6087:6e24de5efdb2
688 688
689 return 0; 689 return 0;
690 } 690 }
691 691
692 static gboolean 692 static gboolean
693 __parse_data(TrepiaSession *session, char *buf) 693 _parse_data(TrepiaSession *session, char *buf)
694 { 694 {
695 GHashTable *info; 695 GHashTable *info;
696 GaimAccount *account; 696 GaimAccount *account;
697 TrepiaMessageType type = 0; 697 TrepiaMessageType type = 0;
698 TrepiaProfile *profile = NULL; 698 TrepiaProfile *profile = NULL;
989 989
990 return TRUE; 990 return TRUE;
991 } 991 }
992 992
993 static void 993 static void
994 __data_cb(gpointer data, gint source, GaimInputCondition cond) 994 _data_cb(gpointer data, gint source, GaimInputCondition cond)
995 { 995 {
996 TrepiaSession *session = data; 996 TrepiaSession *session = data;
997 int i = 0; 997 int i = 0;
998 char buf[1025]; 998 char buf[1025];
999 gboolean cont = TRUE; 999 gboolean cont = TRUE;
1036 if (*session->rxqueue->str == '\n') 1036 if (*session->rxqueue->str == '\n')
1037 g_string_erase(session->rxqueue, 0, 1); 1037 g_string_erase(session->rxqueue, 0, 1);
1038 1038
1039 gaim_debug(GAIM_DEBUG_MISC, "trepia", "S: %s\n", buffer); 1039 gaim_debug(GAIM_DEBUG_MISC, "trepia", "S: %s\n", buffer);
1040 1040
1041 ret = __parse_data(session, buffer); 1041 ret = _parse_data(session, buffer);
1042 1042
1043 g_free(buffer); 1043 g_free(buffer);
1044 } 1044 }
1045 else 1045 else
1046 break; 1046 break;
1111 } 1111 }
1112 1112
1113 g_free(buffer); 1113 g_free(buffer);
1114 1114
1115 session->gc->inpa = gaim_input_add(session->fd, GAIM_INPUT_READ, 1115 session->gc->inpa = gaim_input_add(session->fd, GAIM_INPUT_READ,
1116 __data_cb, session); 1116 _data_cb, session);
1117 } 1117 }
1118 1118
1119 static void 1119 static void
1120 trepia_login(GaimAccount *account) 1120 trepia_login(GaimAccount *account)
1121 { 1121 {