Mercurial > pidgin
comparison src/protocols/sametime/meanwhile/mw_session.h @ 12311:a2ebf585d8c6
[gaim-migrate @ 14615]
should work fine, but I have to go home now. This ought to clean up all the signedness warnings, start to remove some unnecessary features (server-stored status messages), and add a useful feature (pretending to be an official client when the server is blocking unofficial clients)
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Sun, 04 Dec 2005 04:09:30 +0000 |
parents | 0110fc7c6a8a |
children |
comparison
equal
deleted
inserted
replaced
12310:a532eccfc7bb | 12311:a2ebf585d8c6 |
---|---|
148 code to provide I/O and event handling */ | 148 code to provide I/O and event handling */ |
149 struct mwSessionHandler { | 149 struct mwSessionHandler { |
150 | 150 |
151 /** write data to the server connection. Required. Should return | 151 /** write data to the server connection. Required. Should return |
152 zero for success, non-zero for error */ | 152 zero for success, non-zero for error */ |
153 int (*io_write)(struct mwSession *, const char *buf, gsize len); | 153 int (*io_write)(struct mwSession *, const guchar *buf, gsize len); |
154 | 154 |
155 /** close the server connection. Required */ | 155 /** close the server connection. Required */ |
156 void (*io_close)(struct mwSession *); | 156 void (*io_close)(struct mwSession *); |
157 | 157 |
158 /** triggered by mwSession_free. Optional. Put cleanup code here */ | 158 /** triggered by mwSession_free. Optional. Put cleanup code here */ |
212 void mwSession_stop(struct mwSession *, guint32 reason); | 212 void mwSession_stop(struct mwSession *, guint32 reason); |
213 | 213 |
214 | 214 |
215 /** Data is buffered, unpacked, and parsed into a message, then | 215 /** Data is buffered, unpacked, and parsed into a message, then |
216 processed accordingly. */ | 216 processed accordingly. */ |
217 void mwSession_recv(struct mwSession *, const char *, gsize); | 217 void mwSession_recv(struct mwSession *, const guchar *, gsize); |
218 | 218 |
219 | 219 |
220 /** primarily used by services to have messages serialized and sent | 220 /** primarily used by services to have messages serialized and sent |
221 @param s session to send message over | 221 @param s session to send message over |
222 @param msg message to serialize and send | 222 @param msg message to serialize and send |