From e1513fcc6cebe513e0b3b0778b5cfe18097fe576 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 Aug 2010 10:55:46 +0200 Subject: irc-network: add accessors for name and charset --- libempathy/empathy-irc-network.c | 16 ++++++++++++++++ libempathy/empathy-irc-network.h | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/libempathy/empathy-irc-network.c b/libempathy/empathy-irc-network.c index 9b75f0e82..d5b0bdcb9 100644 --- a/libempathy/empathy-irc-network.c +++ b/libempathy/empathy-irc-network.c @@ -359,3 +359,19 @@ empathy_irc_network_set_server_position (EmpathyIrcNetwork *self, g_signal_emit (self, signals[MODIFIED], 0); } + +const gchar * +empathy_irc_network_get_name (EmpathyIrcNetwork *self) +{ + EmpathyIrcNetworkPriv *priv = GET_PRIV (self); + + return priv->name; +} + +const gchar * +empathy_irc_network_get_charset (EmpathyIrcNetwork *self) +{ + EmpathyIrcNetworkPriv *priv = GET_PRIV (self); + + return priv->charset; +} diff --git a/libempathy/empathy-irc-network.h b/libempathy/empathy-irc-network.h index b10b2769e..9d78f3c3f 100644 --- a/libempathy/empathy-irc-network.h +++ b/libempathy/empathy-irc-network.h @@ -75,6 +75,10 @@ void empathy_irc_network_remove_server (EmpathyIrcNetwork *network, void empathy_irc_network_set_server_position (EmpathyIrcNetwork *network, EmpathyIrcServer *server, gint pos); +const gchar * empathy_irc_network_get_name (EmpathyIrcNetwork *network); + +const gchar * empathy_irc_network_get_charset (EmpathyIrcNetwork *network); + G_END_DECLS #endif /* __EMPATHY_IRC_NETWORK_H__ */ -- cgit v1.2.3