Allow to set friend channel.
[cascardo/sgp.git] / src / friend.c
index a8c1fc6..3047a13 100644 (file)
@@ -64,3 +64,9 @@ struct sgp_channel * sgp_friend_get_channel(struct sgp_friend *friend)
         */
        return friend->channel;
 }
+
+void sgp_friend_set_channel(struct sgp_friend *friend,
+                               struct sgp_channel *channel)
+{
+       friend->channel = channel;
+}