Mercurial > pidgin.yaz
diff src/protocols/msn/user.h @ 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.h Tue May 06 08:53:52 2003 +0000 +++ b/src/protocols/msn/user.h Tue May 06 08:54:58 2003 +0000 @@ -32,14 +32,16 @@ */ struct _MsnUser { - MsnSession *session; /**< The MSN session. */ + MsnSession *session; /**< The MSN session. */ + + char *passport; /**< The passport account. */ + char *name; /**< The friendly name. */ - char *passport; /**< The passport account. */ - char *name; /**< The friendly name. */ + int group_id; /**< The group ID. */ - int group_id; /**< The group ID. */ + size_t ref_count; /**< The reference count. */ - size_t ref_count; /**< The reference count. */ + GHashTable *clientinfo; /**< The client information. */ }; /** @@ -141,6 +143,23 @@ int msn_user_get_group_id(const MsnUser *user); /** + * Sets the client information for a user. + * + * @param user The user. + * @param info The client information. + */ +void msn_user_set_client_info(MsnUser *user, GHashTable *info); + +/** + * Returns the client information for a user. + * + * @param user The user. + * + * @return The client information. + */ +GHashTable *msn_user_get_client_info(const MsnUser *user); + +/** * Creates a new MsnUsers structure. * * @return A new MsnUsers structure. @@ -170,7 +189,6 @@ */ void msn_users_remove(MsnUsers *users, MsnUser *user); - /** * Finds a user with the specified passport. *