Changeset 9e5c9f3 for view.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:
1e94c0b
Parents:
4542047
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:09)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
Message:
Add const qualifiers for owl_view *.

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

Legend:

Unmodified
Added
Removed
  • view.c

    r3eb599d r9e5c9f3  
    1111}
    1212
    13 const char *owl_view_get_name(owl_view *v)
     13const char *owl_view_get_name(const owl_view *v)
    1414{
    1515  return(v->name);
     
    6262}
    6363
    64 const owl_style *owl_view_get_style(owl_view *v)
     64const owl_style *owl_view_get_style(const owl_view *v)
    6565{
    6666  return(v->style);
    6767}
    6868
    69 const char *owl_view_get_style_name(owl_view *v) {
     69const char *owl_view_get_style_name(const owl_view *v) {
    7070  return(owl_style_get_name(v->style));
    7171}
    7272
    73 owl_message *owl_view_get_element(owl_view *v, int index)
     73owl_message *owl_view_get_element(const owl_view *v, int index)
    7474{
    7575  return(owl_messagelist_get_element(&(v->ml), index));
     
    8686}
    8787
    88 int owl_view_get_size(owl_view *v)
     88int owl_view_get_size(const owl_view *v)
    8989{
    9090  return(owl_messagelist_get_size(&(v->ml)));
     
    9393/* Returns the position in the view with a message closest
    9494 * to the passed msgid. */
    95 int owl_view_get_nearest_to_msgid(owl_view *v, int targetid)
     95int owl_view_get_nearest_to_msgid(const owl_view *v, int targetid)
    9696{
    9797  int first, last, mid = 0, max, bestdist, curid = 0;
     
    122122}
    123123
    124 int owl_view_get_nearest_to_saved(owl_view *v)
     124int owl_view_get_nearest_to_saved(const owl_view *v)
    125125{
    126126  int cachedid;
     
    139139
    140140/* fmtext should already be initialized */
    141 void owl_view_to_fmtext(owl_view *v, owl_fmtext *fm)
     141void owl_view_to_fmtext(const owl_view *v, owl_fmtext *fm)
    142142{
    143143  owl_fmtext_append_normal(fm, "Name: ");
     
    154154}
    155155
    156 const char *owl_view_get_filtname(owl_view *v)
     156const char *owl_view_get_filtname(const owl_view *v)
    157157{
    158158  return(owl_filter_get_name(v->filter));
Note: See TracChangeset for help on using the changeset viewer.