Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/userlist.h @ 29374:7f97370e674b
Use our MsnListOp enum in more places instead of int. I'm assuming
the reason this wasn't done before is because of the circular header
file dependencies. But that should be fine now that enums are
declared before #includes
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 05 Feb 2010 22:54:00 +0000 |
parents | 462cb893521b |
children | 02dc01aa8c07 |
comparison
equal
deleted
inserted
replaced
29373:462cb893521b | 29374:7f97370e674b |
---|---|
34 MSN_LIST_RL, /**< Reverse list */ | 34 MSN_LIST_RL, /**< Reverse list */ |
35 MSN_LIST_PL /**< Pending list */ | 35 MSN_LIST_PL /**< Pending list */ |
36 } MsnListId; | 36 } MsnListId; |
37 | 37 |
38 #include "group.h" | 38 #include "group.h" |
39 #include "msn.h" | |
39 #include "user.h" | 40 #include "user.h" |
40 | 41 |
41 struct _MsnUserList | 42 struct _MsnUserList |
42 { | 43 { |
43 MsnSession *session; | 44 MsnSession *session; |
53 | 54 |
54 gboolean msn_userlist_user_is_in_group(MsnUser *user, const char * group_id); | 55 gboolean msn_userlist_user_is_in_group(MsnUser *user, const char * group_id); |
55 gboolean msn_userlist_user_is_in_list(MsnUser *user, MsnListId list_id); | 56 gboolean msn_userlist_user_is_in_list(MsnUser *user, MsnListId list_id); |
56 | 57 |
57 void msn_got_lst_user(MsnSession *session, MsnUser *user, | 58 void msn_got_lst_user(MsnSession *session, MsnUser *user, |
58 int list_op, GSList *group_ids); | 59 MsnListOp list_op, GSList *group_ids); |
59 | 60 |
60 MsnUserList *msn_userlist_new(MsnSession *session); | 61 MsnUserList *msn_userlist_new(MsnSession *session); |
61 void msn_userlist_destroy(MsnUserList *userlist); | 62 void msn_userlist_destroy(MsnUserList *userlist); |
62 | 63 |
63 void msn_userlist_add_user(MsnUserList *userlist, MsnUser *user); | 64 void msn_userlist_add_user(MsnUserList *userlist, MsnUser *user); |