comparison src/prpl.h @ 11693:b91a84e7cbcb

[gaim-migrate @ 13979] Don't crash on bonjour when IMing a non-existant user. Also better error reporting, I think. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 18 Oct 2005 04:16:44 +0000
parents 9fc7d0153332
children fa742ad8068c
comparison
equal deleted inserted replaced
11692:969fb599cc1b 11693:b91a84e7cbcb
221 /** This must be implemented. */ 221 /** This must be implemented. */
222 void (*login)(GaimAccount *, GaimStatus *); 222 void (*login)(GaimAccount *, GaimStatus *);
223 223
224 /** This must be implemented. */ 224 /** This must be implemented. */
225 void (*close)(GaimConnection *); 225 void (*close)(GaimConnection *);
226
227 /**
228 * This PRPL function should return a positive value on success.
229 * If the message is too big to be sent, return -E2BIG. If
230 * the account is not connected, return -ENOTCONN. If the
231 * PRPL is unable to send the message for another reason, return
232 * some other negative value. You can use one of the valid
233 * errno values, or just big something. If the message should
234 * not be echoed to the conversation window, return 0.
235 */
226 int (*send_im)(GaimConnection *, const char *who, 236 int (*send_im)(GaimConnection *, const char *who,
227 const char *message, 237 const char *message,
228 GaimConvImFlags flags); 238 GaimConvImFlags flags);
239
229 void (*set_info)(GaimConnection *, const char *info); 240 void (*set_info)(GaimConnection *, const char *info);
230 int (*send_typing)(GaimConnection *, const char *name, int typing); 241 int (*send_typing)(GaimConnection *, const char *name, int typing);
231 void (*get_info)(GaimConnection *, const char *who); 242 void (*get_info)(GaimConnection *, const char *who);
232 void (*set_status)(GaimAccount *account, GaimStatus *status); 243 void (*set_status)(GaimAccount *account, GaimStatus *status);
233 244