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

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

Legend:

Unmodified
Added
Removed
  • filter.c

    rc08c70a r4542047  
    151151}
    152152
    153 const char *owl_filter_get_name(owl_filter *f)
     153const char *owl_filter_get_name(const owl_filter *f)
    154154{
    155155  return(f->name);
     
    161161}
    162162
    163 int owl_filter_get_fgcolor(owl_filter *f)
     163int owl_filter_get_fgcolor(const owl_filter *f)
    164164{
    165165  return(f->fgcolor);
     
    171171}
    172172
    173 int owl_filter_get_bgcolor(owl_filter *f)
     173int owl_filter_get_bgcolor(const owl_filter *f)
    174174{
    175175  return(f->bgcolor);
     
    181181}
    182182
    183 int owl_filter_get_cachedmsgid(owl_filter *f)
     183int owl_filter_get_cachedmsgid(const owl_filter *f)
    184184{
    185185  return(f->cachedmsgid);
     
    189189 * return 0.
    190190 */
    191 int owl_filter_message_match(owl_filter *f, const owl_message *m)
     191int owl_filter_message_match(const owl_filter *f, const owl_message *m)
    192192{
    193193  int ret;
     
    198198
    199199
    200 char* owl_filter_print(owl_filter *f)
     200char* owl_filter_print(const owl_filter *f)
    201201{
    202202  GString *out = g_string_new("");
     
    231231
    232232/* Return 1 if the filters 'a' and 'b' are equivalent, 0 otherwise */
    233 int owl_filter_equiv(owl_filter *a, owl_filter *b)
     233int owl_filter_equiv(const owl_filter *a, const owl_filter *b)
    234234{
    235235  char *buffa, *buffb;
     
    250250
    251251
    252 int owl_filter_is_toodeep(owl_filter *f)
     252int owl_filter_is_toodeep(const owl_filter *f)
    253253{
    254254  return owl_filterelement_is_toodeep(f, f->root);
Note: See TracChangeset for help on using the changeset viewer.