Mercurial > pidgin.yaz
comparison libpurple/blist.h @ 25416:6e1967b0f90b
Change "screen name" to "username" or "buddy name" in a whole bunch of
places in the code. I've been using the definitions from the jabber
specs, where "user" is me and "buddy" is someone on my buddy list.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 26 Jan 2009 09:12:04 +0000 |
parents | 584063555949 |
children | a2b1ad53477a f857ec889c7b |
comparison
equal
deleted
inserted
replaced
25415:584063555949 | 25416:6e1967b0f90b |
---|---|
134 /** | 134 /** |
135 * A buddy. This contains everything Purple will ever need to know about someone on the buddy list. Everything. | 135 * A buddy. This contains everything Purple will ever need to know about someone on the buddy list. Everything. |
136 */ | 136 */ |
137 struct _PurpleBuddy { | 137 struct _PurpleBuddy { |
138 PurpleBlistNode node; /**< The node that this buddy inherits from */ | 138 PurpleBlistNode node; /**< The node that this buddy inherits from */ |
139 char *name; /**< The screenname of the buddy. */ | 139 char *name; /**< The name of the buddy. */ |
140 char *alias; /**< The user-set alias of the buddy */ | 140 char *alias; /**< The user-set alias of the buddy */ |
141 char *server_alias; /**< The server-specified alias of the buddy. (i.e. MSN "Friendly Names") */ | 141 char *server_alias; /**< The server-specified alias of the buddy. (i.e. MSN "Friendly Names") */ |
142 void *proto_data; /**< This allows the prpl to associate whatever data it wants with a buddy */ | 142 void *proto_data; /**< This allows the prpl to associate whatever data it wants with a buddy */ |
143 PurpleBuddyIcon *icon; /**< The buddy icon. */ | 143 PurpleBuddyIcon *icon; /**< The buddy icon. */ |
144 PurpleAccount *account; /**< the account this buddy belongs to */ | 144 PurpleAccount *account; /**< the account this buddy belongs to */ |
492 | 492 |
493 /** | 493 /** |
494 * Creates a new buddy | 494 * Creates a new buddy |
495 * | 495 * |
496 * @param account The account this buddy will get added to | 496 * @param account The account this buddy will get added to |
497 * @param screenname The screenname of the new buddy | 497 * @param name The name of the new buddy |
498 * @param alias The alias of the new buddy (or NULL if unaliased) | 498 * @param alias The alias of the new buddy (or NULL if unaliased) |
499 * @return A newly allocated buddy | 499 * @return A newly allocated buddy |
500 */ | 500 */ |
501 PurpleBuddy *purple_buddy_new(PurpleAccount *account, const char *screenname, const char *alias); | 501 PurpleBuddy *purple_buddy_new(PurpleAccount *account, const char *name, const char *alias); |
502 | 502 |
503 /** | 503 /** |
504 * Sets a buddy's icon. | 504 * Sets a buddy's icon. |
505 * | 505 * |
506 * This should only be called from within Purple. You probably want to | 506 * This should only be called from within Purple. You probably want to |
796 * @return The alias (if set), or first component value. | 796 * @return The alias (if set), or first component value. |
797 */ | 797 */ |
798 const char *purple_chat_get_name(PurpleChat *chat); | 798 const char *purple_chat_get_name(PurpleChat *chat); |
799 | 799 |
800 /** | 800 /** |
801 * Finds the buddy struct given a screenname and an account | 801 * Finds the buddy struct given a name and an account |
802 * | 802 * |
803 * @param account The account this buddy belongs to | 803 * @param account The account this buddy belongs to |
804 * @param name The buddy's screenname | 804 * @param name The buddy's name |
805 * @return The buddy or NULL if the buddy does not exist | 805 * @return The buddy or NULL if the buddy does not exist |
806 */ | 806 */ |
807 PurpleBuddy *purple_find_buddy(PurpleAccount *account, const char *name); | 807 PurpleBuddy *purple_find_buddy(PurpleAccount *account, const char *name); |
808 | 808 |
809 /** | 809 /** |
810 * Finds the buddy struct given a screenname, an account, and a group | 810 * Finds the buddy struct given a name, an account, and a group |
811 * | 811 * |
812 * @param account The account this buddy belongs to | 812 * @param account The account this buddy belongs to |
813 * @param name The buddy's screenname | 813 * @param name The buddy's name |
814 * @param group The group to look in | 814 * @param group The group to look in |
815 * @return The buddy or NULL if the buddy does not exist in the group | 815 * @return The buddy or NULL if the buddy does not exist in the group |
816 */ | 816 */ |
817 PurpleBuddy *purple_find_buddy_in_group(PurpleAccount *account, const char *name, | 817 PurpleBuddy *purple_find_buddy_in_group(PurpleAccount *account, const char *name, |
818 PurpleGroup *group); | 818 PurpleGroup *group); |
819 | 819 |
820 /** | 820 /** |
821 * Finds all PurpleBuddy structs given a screenname and an account | 821 * Finds all PurpleBuddy structs given a name and an account |
822 * | 822 * |
823 * @param account The account this buddy belongs to | 823 * @param account The account this buddy belongs to |
824 * @param name The buddy's screenname (or NULL to return all buddies in the account) | 824 * @param name The buddy's name (or NULL to return all buddies in the account) |
825 * | 825 * |
826 * @return A GSList of buddies (which must be freed), or NULL if the buddy doesn't exist | 826 * @return A GSList of buddies (which must be freed), or NULL if the buddy doesn't exist |
827 */ | 827 */ |
828 GSList *purple_find_buddies(PurpleAccount *account, const char *name); | 828 GSList *purple_find_buddies(PurpleAccount *account, const char *name); |
829 | 829 |