From 1027b3822fe07cba971bdddffd417e635c921b0a Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Wed, 17 Jul 2013 19:05:16 -0300 Subject: [PATCH] Allow to set friend channel. --- include/sgp/friend.h | 1 + src/friend.c | 6 ++++++ 2 files changed, 7 insertions(+) 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; +} -- 2.20.1