libpurple/connection.h

branch
soc.2013.gobjectification.plugins
changeset 36710
16a60fe59d22
parent 36695
7cf0bf5b9a40
child 36845
c2f112c96281
--- a/libpurple/connection.h	Fri Sep 13 19:02:07 2013 +0530
+++ b/libpurple/connection.h	Fri Sep 13 19:07:59 2013 +0530
@@ -309,6 +309,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.
@@ -380,6 +388,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.

mercurial