From: Thadeu Lima de Souza Cascardo Date: Wed, 17 Jul 2013 22:05:16 +0000 (-0300) Subject: Allow to set friend channel. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fsgp.git;a=commitdiff_plain;h=1027b3822fe07cba971bdddffd417e635c921b0a Allow to set friend channel. --- diff --git a/include/sgp/friend.h b/include/sgp/friend.h index 91965f9..9ed62dc 100644 --- a/include/sgp/friend.h +++ b/include/sgp/friend.h @@ -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 *); +void sgp_friend_set_channel(struct sgp_friend *, struct sgp_channel *); #endif diff --git a/src/friend.c b/src/friend.c index a8c1fc6..3047a13 100644 --- a/src/friend.c +++ b/src/friend.c @@ -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; +}