Changeset 3eb599d for messagelist.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:20 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
89b2daf
Parents:
9c01a5e
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:04)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
Message:
Add const qualifiers for owl_messagelist *.

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

Legend:

Unmodified
Added
Removed
  • messagelist.c

    rd43edd2 r3eb599d  
    99}
    1010
    11 int owl_messagelist_get_size(owl_messagelist *ml)
     11int owl_messagelist_get_size(const owl_messagelist *ml)
    1212{
    1313  return(owl_list_get_size(&(ml->list)));
    1414}
    1515
    16 void *owl_messagelist_get_element(owl_messagelist *ml, int n)
     16void *owl_messagelist_get_element(const owl_messagelist *ml, int n)
    1717{
    1818  return(owl_list_get_element(&(ml->list), n));
    1919}
    2020
    21 owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int target_id)
     21owl_message *owl_messagelist_get_by_id(const owl_messagelist *ml, int target_id)
    2222{
    2323  /* return the message with id == 'id'.  If it doesn't exist return NULL. */
     
    9090}
    9191
    92 void owl_messagelist_invalidate_formats(owl_messagelist *ml)
     92void owl_messagelist_invalidate_formats(const owl_messagelist *ml)
    9393{
    9494  int i, j;
Note: See TracChangeset for help on using the changeset viewer.