Allow to set friend channel.
authorThadeu Lima de Souza Cascardo <cascardo@cascardo.info>
Wed, 17 Jul 2013 22:05:16 +0000 (19:05 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.info>
Wed, 17 Jul 2013 22:05:16 +0000 (19:05 -0300)
include/sgp/friend.h
src/friend.c

index 91965f9..9ed62dc 100644 (file)
@@ -28,5 +28,6 @@ void sgp_friend_destroy(struct sgp_friend *);
 char * sgp_friend_get_alias(struct sgp_friend *);
 
 struct sgp_channel * sgp_friend_get_channel(struct sgp_friend *);
 char * sgp_friend_get_alias(struct sgp_friend *);
 
 struct sgp_channel * sgp_friend_get_channel(struct sgp_friend *);
+void sgp_friend_set_channel(struct sgp_friend *, struct sgp_channel *);
 
 #endif
 
 #endif
index a8c1fc6..3047a13 100644 (file)
@@ -64,3 +64,9 @@ struct sgp_channel * sgp_friend_get_channel(struct sgp_friend *friend)
         */
        return friend->channel;
 }
         */
        return friend->channel;
 }
+
+void sgp_friend_set_channel(struct sgp_friend *friend,
+                               struct sgp_channel *channel)
+{
+       friend->channel = channel;
+}