Changeset 35b3518 for buddylist.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:21 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b258c51
Parents:
476faed
git-author:
Anders Kaseorg <andersk@mit.edu> (07/22/09 03:42:11)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:21)
Message:
Add const qualifiers for owl_buddylist *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddylist.c

    r476faed r35b3518  
    8585
    8686/* return the number of logged in buddies */
    87 int owl_buddylist_get_size(owl_buddylist *bl)
     87int owl_buddylist_get_size(const owl_buddylist *bl)
    8888{
    8989  return(owl_list_get_size(&(bl->buddies)));
     
    9292/* return the buddy with index N.  If out of range, return NULL
    9393 */
    94 owl_buddy *owl_buddylist_get_buddy_n(owl_buddylist *bl, int index)
     94owl_buddy *owl_buddylist_get_buddy_n(const owl_buddylist *bl, int index)
    9595{
    9696  if (index<0) return(NULL);
     
    103103 * no such buddy is logged in, return NULL.
    104104 */
    105 owl_buddy *owl_buddylist_get_aim_buddy(owl_buddylist *bl, const char *name)
     105owl_buddy *owl_buddylist_get_aim_buddy(const owl_buddylist *bl, const char *name)
    106106{
    107107  int i, j;
     
    119119 * otherwise return 0
    120120 */
    121 int owl_buddylist_is_aim_buddy_loggedin(owl_buddylist *bl, const char *screenname)
     121int owl_buddylist_is_aim_buddy_loggedin(const owl_buddylist *bl, const char *screenname)
    122122{
    123123  const owl_buddy *b;
Note: See TracChangeset for help on using the changeset viewer.