Mercurial > pidgin.yaz
diff libgaim/protocols/oscar/oscar.h @ 15087:eed75cc6cb88
[gaim-migrate @ 17872]
Use GSLists in two places instead of self-made linked lists. I find
this to be much more readable.
3 files changed, 67 insertions(+), 88 deletions(-)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 02 Dec 2006 08:37:24 +0000 |
parents | f3573d941d66 |
children | 25c3a33c6485 |
line wrap: on
line diff
--- a/libgaim/protocols/oscar/oscar.h Sat Dec 02 08:03:45 2006 +0000 +++ b/libgaim/protocols/oscar/oscar.h Sat Dec 02 08:37:24 2006 +0000 @@ -384,7 +384,8 @@ guint16 seqnum; /**< The sequence number of most recent outgoing packet. */ guint32 status; GSList *groups; - struct rateclass *rates; + GSList *rateclasses; /* Contains nodes of struct rateclass */ + /* TODO: Maybe use a GHashTable for rateclasses */ void *internal; /* internal conn-specific libfaim data */ }; @@ -1560,7 +1561,6 @@ struct snacpair { guint16 group; guint16 subtype; - struct snacpair *next; }; struct rateclass { @@ -1573,8 +1573,8 @@ guint32 current; guint32 max; guint8 unknown[5]; /* only present in versions >= 3 */ - struct snacpair *members; - struct rateclass *next; + GSList *members; /* Contains node of struct snacpair */ + /* TODO: Maybe use a GHashTable for members */ }; int aim_cachecookie(OscarData *od, IcbmCookie *cookie);