Mercurial > pidgin.yaz
diff libpurple/connection.h @ 25281:9ded0fb57e1c
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Also update libpurple/connection.c to actually compile with the structs hidden
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Fri, 31 Oct 2008 01:05:33 +0000 |
parents | 85fc34efe733 |
children | d719b9d82540 |
line wrap: on
line diff
--- a/libpurple/connection.h Thu Oct 30 20:10:26 2008 +0000 +++ b/libpurple/connection.h Fri Oct 31 01:05:33 2008 +0000 @@ -354,6 +354,14 @@ void purple_connection_set_display_name(PurpleConnection *gc, const char *name); /** + * Sets the protocol data for a connection. + * + * @param connection The PurpleConnection. + * @param proto_data The protocol data to set for the connection. + */ +void purple_connection_set_protocol_data(PurpleConnection *connection, void *proto_data); + +/** * Returns the connection state. * * @param gc The connection. @@ -408,6 +416,15 @@ const char *purple_connection_get_display_name(const PurpleConnection *gc); /** + * Gets the protocol data from a connection. + * + * @param connection The PurpleConnection. + * + * @return The protocol data for the connection. + */ +void *purple_connection_get_protocol_data(const PurpleConnection *connection); + +/** * Updates the connection progress. * * @param gc The connection.