diff src/protocols/msn/user.c @ 5316:d5690ed70085

[gaim-migrate @ 5688] Added experimental support for the text/x-clientinfo content-type being discussed on the forums at hypothetic.org. It may change, but for now, I just want to play with it, and I want us to be able to accept the messages. Ignore what it consists of right now. It'll change. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 06 May 2003 08:54:58 +0000
parents e2e53316a21d
children ebebc833cf77
line wrap: on
line diff
--- a/src/protocols/msn/user.c	Tue May 06 08:53:52 2003 +0000
+++ b/src/protocols/msn/user.c	Tue May 06 08:54:58 2003 +0000
@@ -69,6 +69,9 @@
 	if (user->session != NULL && user->session->users != NULL)
 		msn_users_remove(user->session->users, user);
 
+	if (user->clientinfo != NULL)
+		g_hash_table_destroy(user->clientinfo);
+
 	if (user->passport != NULL)
 		g_free(user->passport);
 
@@ -161,6 +164,26 @@
 	return user->group_id;
 }
 
+void
+msn_user_set_client_info(MsnUser *user, GHashTable *info)
+{
+	g_return_if_fail(user != NULL);
+	g_return_if_fail(info != NULL);
+
+	if (user->clientinfo != NULL)
+		g_hash_table_destroy(user->clientinfo);
+
+	user->clientinfo = info;
+}
+
+GHashTable *
+msn_user_get_client_info(const MsnUser *user)
+{
+	g_return_val_if_fail(user != NULL, NULL);
+
+	return user->clientinfo;
+}
+
 MsnUsers *
 msn_users_new(void)
 {