aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 16:55:46 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 17:45:14 +0800
commite1513fcc6cebe513e0b3b0778b5cfe18097fe576 (patch)
tree59dae433c753c50d459cead6bf82aec2f13c959a
parentba36ddff81ce9f228f150246069ceb76425cfee5 (diff)
downloadgsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.tar
gsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.tar.gz
gsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.tar.bz2
gsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.tar.lz
gsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.tar.xz
gsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.tar.zst
gsoc2013-empathy-e1513fcc6cebe513e0b3b0778b5cfe18097fe576.zip
irc-network: add accessors for name and charset
-rw-r--r--libempathy/empathy-irc-network.c16
-rw-r--r--libempathy/empathy-irc-network.h4
2 files changed, 20 insertions, 0 deletions
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__ */