diff src/protocols/yahoo/yahoo_friend.c @ 9283:66ff39319900

[gaim-migrate @ 10086] Just some boring accessor function stuff. Move along folks. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Mon, 14 Jun 2004 16:44:32 +0000
parents fe7db2ea4a1e
children fe0291162312
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_friend.c	Mon Jun 14 07:06:37 2004 +0000
+++ b/src/protocols/yahoo/yahoo_friend.c	Mon Jun 14 16:44:32 2004 +0000
@@ -26,7 +26,7 @@
 
 #include "yahoo_friend.h"
 
-YahooFriend *yahoo_friend_new(void)
+static YahooFriend *yahoo_friend_new(void)
 {
 	YahooFriend *ret;
 
@@ -83,6 +83,35 @@
 	return f->ip;
 }
 
+void yahoo_friend_set_game(YahooFriend *f, const char *game)
+{
+	if (f->game)
+		g_free(f->game);
+
+	if (game)
+		f->game = g_strdup(game);
+	else
+		f->game = NULL;
+}
+
+const char *yahoo_friend_get_game(YahooFriend *f)
+{
+	return f->game;
+}
+
+void yahoo_friend_set_status_message(YahooFriend *f, char *msg)
+{
+	if (f->msg)
+		g_free(f->msg);
+
+	f->msg = msg;
+}
+
+const char *yahoo_friend_get_status_message(YahooFriend *f)
+{
+	return f->msg;
+}
+
 void yahoo_friend_free(gpointer p)
 {
 	YahooFriend *f = p;