Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/prpl.h Mon Dec 03 16:38:38 2007 +0000 +++ b/libpurple/prpl.h Mon Dec 03 19:02:28 2007 +0000 @@ -292,6 +292,13 @@ void (*chat_whisper)(PurpleConnection *, int id, const char *who, const char *message); int (*chat_send)(PurpleConnection *, int id, const char *message, PurpleMessageFlags flags); + + /** If implemented, this will be called regularly for this prpl's + * active connections. You'd want to do this if you need to repeatedly + * send some kind of keepalive packet to the server to avoid being + * disconnected. ("Regularly" is defined by + * <code>KEEPALIVE_INTERVAL</code> in <tt>libpurple/connection.c</tt>.) + */ void (*keepalive)(PurpleConnection *); /** new user registration */