- Timestamp:
- Aug 15, 2009, 7:08:20 PM (15 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
view.c
r3eb599d r9e5c9f3 11 11 } 12 12 13 const char *owl_view_get_name( owl_view *v)13 const char *owl_view_get_name(const owl_view *v) 14 14 { 15 15 return(v->name); … … 62 62 } 63 63 64 const owl_style *owl_view_get_style( owl_view *v)64 const owl_style *owl_view_get_style(const owl_view *v) 65 65 { 66 66 return(v->style); 67 67 } 68 68 69 const char *owl_view_get_style_name( owl_view *v) {69 const char *owl_view_get_style_name(const owl_view *v) { 70 70 return(owl_style_get_name(v->style)); 71 71 } 72 72 73 owl_message *owl_view_get_element( owl_view *v, int index)73 owl_message *owl_view_get_element(const owl_view *v, int index) 74 74 { 75 75 return(owl_messagelist_get_element(&(v->ml), index)); … … 86 86 } 87 87 88 int owl_view_get_size( owl_view *v)88 int owl_view_get_size(const owl_view *v) 89 89 { 90 90 return(owl_messagelist_get_size(&(v->ml))); … … 93 93 /* Returns the position in the view with a message closest 94 94 * to the passed msgid. */ 95 int owl_view_get_nearest_to_msgid( owl_view *v, int targetid)95 int owl_view_get_nearest_to_msgid(const owl_view *v, int targetid) 96 96 { 97 97 int first, last, mid = 0, max, bestdist, curid = 0; … … 122 122 } 123 123 124 int owl_view_get_nearest_to_saved( owl_view *v)124 int owl_view_get_nearest_to_saved(const owl_view *v) 125 125 { 126 126 int cachedid; … … 139 139 140 140 /* fmtext should already be initialized */ 141 void owl_view_to_fmtext( owl_view *v, owl_fmtext *fm)141 void owl_view_to_fmtext(const owl_view *v, owl_fmtext *fm) 142 142 { 143 143 owl_fmtext_append_normal(fm, "Name: "); … … 154 154 } 155 155 156 const char *owl_view_get_filtname( owl_view *v)156 const char *owl_view_get_filtname(const owl_view *v) 157 157 { 158 158 return(owl_filter_get_name(v->filter));
Note: See TracChangeset
for help on using the changeset viewer.