comparison src/toc.c @ 1000:91b7377e7b45

[gaim-migrate @ 1010] Plugins work again, I think. There may still be some bugginess. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 16 Oct 2000 20:11:18 +0000
parents 70c685de2be5
children 1d8f05ea6bdf
comparison
equal deleted inserted replaced
999:0b5db8cdd30f 1000:91b7377e7b45
38 #include "prpl.h" 38 #include "prpl.h"
39 #include "multi.h" 39 #include "multi.h"
40 #include "gaim.h" 40 #include "gaim.h"
41 #include "gnome_applet_mgr.h" 41 #include "gnome_applet_mgr.h"
42 42
43 #define REVISION "gaim:$Revision: 1008 $" 43 #define REVISION "gaim:$Revision: 1010 $"
44 44
45 struct toc_data { 45 struct toc_data {
46 int toc_fd; 46 int toc_fd;
47 int seqno; 47 int seqno;
48 int state; 48 int state;
1113 1113
1114 static void toc_keepalive(struct gaim_connection *gc) { 1114 static void toc_keepalive(struct gaim_connection *gc) {
1115 sflap_send(gc, "", 0, TYPE_KEEPALIVE); 1115 sflap_send(gc, "", 0, TYPE_KEEPALIVE);
1116 } 1116 }
1117 1117
1118 struct prpl *toc_init() { 1118 void toc_init(struct prpl *ret) {
1119 struct prpl *ret = g_new0(struct prpl, 1);
1120
1121 ret->protocol = PROTO_TOC; 1119 ret->protocol = PROTO_TOC;
1122 ret->name = toc_name; 1120 ret->name = toc_name;
1123 ret->login = toc_login; 1121 ret->login = toc_login;
1124 ret->close = toc_close; 1122 ret->close = toc_close;
1125 ret->send_im = toc_send_im; 1123 ret->send_im = toc_send_im;
1143 ret->chat_invite = toc_chat_invite; 1141 ret->chat_invite = toc_chat_invite;
1144 ret->chat_leave = toc_chat_leave; 1142 ret->chat_leave = toc_chat_leave;
1145 ret->chat_whisper = toc_chat_whisper; 1143 ret->chat_whisper = toc_chat_whisper;
1146 ret->chat_send = toc_chat_send; 1144 ret->chat_send = toc_chat_send;
1147 ret->keepalive = toc_keepalive; 1145 ret->keepalive = toc_keepalive;
1148 1146 }
1149 return ret;
1150 }