[empathy: 6/26] irc-network: add accessors for name and charset
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 6/26] irc-network: add accessors for name and charset
- Date: Thu, 26 Aug 2010 12:03:52 +0000 (UTC)
commit e1513fcc6cebe513e0b3b0778b5cfe18097fe576
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Aug 25 10:55:46 2010 +0200
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(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-irc-network.c b/libempathy/empathy-irc-network.c
index 9b75f0e..d5b0bdc 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 b10b276..9d78f3c 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]