comparison libpurple/prpl.h @ 21750:fb8ab2490ac4

De-magic number the prpl_info->keepalive interval, and document it.
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 03 Dec 2007 19:02:28 +0000
parents eb0f36c3a58f
children eab7d03edfcb 60f5abc6cf0c
comparison
equal deleted inserted replaced
21747:d376b1e191b5 21750:fb8ab2490ac4
290 const char *message, const char *who); 290 const char *message, const char *who);
291 void (*chat_leave)(PurpleConnection *, int id); 291 void (*chat_leave)(PurpleConnection *, int id);
292 void (*chat_whisper)(PurpleConnection *, int id, 292 void (*chat_whisper)(PurpleConnection *, int id,
293 const char *who, const char *message); 293 const char *who, const char *message);
294 int (*chat_send)(PurpleConnection *, int id, const char *message, PurpleMessageFlags flags); 294 int (*chat_send)(PurpleConnection *, int id, const char *message, PurpleMessageFlags flags);
295
296 /** If implemented, this will be called regularly for this prpl's
297 * active connections. You'd want to do this if you need to repeatedly
298 * send some kind of keepalive packet to the server to avoid being
299 * disconnected. ("Regularly" is defined by
300 * <code>KEEPALIVE_INTERVAL</code> in <tt>libpurple/connection.c</tt>.)
301 */
295 void (*keepalive)(PurpleConnection *); 302 void (*keepalive)(PurpleConnection *);
296 303
297 /** new user registration */ 304 /** new user registration */
298 void (*register_user)(PurpleAccount *); 305 void (*register_user)(PurpleAccount *);
299 306