Changeset a352029b


Ignore:
Timestamp:
Aug 15, 2009, 7:08:19 PM (8 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:
25fb825
Parents:
0a0fb74
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 00:27:17)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
Message:
Add const qualifiers for owl_zwrite *.

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

Legend:

Unmodified
Added
Removed
  • zwrite.c

    re19eb97 ra352029b  
    203203}
    204204
    205 void owl_zwrite_send_ping(owl_zwrite *z)
     205void owl_zwrite_send_ping(const owl_zwrite *z)
    206206{
    207207  int i, j;
     
    263263}
    264264
    265 const char *owl_zwrite_get_message(owl_zwrite *z)
     265const char *owl_zwrite_get_message(const owl_zwrite *z)
    266266{
    267267  if (z->message) return(z->message);
     
    269269}
    270270
    271 int owl_zwrite_is_message_set(owl_zwrite *z)
     271int owl_zwrite_is_message_set(const owl_zwrite *z)
    272272{
    273273  if (z->message) return(1);
     
    275275}
    276276
    277 int owl_zwrite_send_message(owl_zwrite *z)
     277int owl_zwrite_send_message(const owl_zwrite *z)
    278278{
    279279  int i, j;
     
    317317}
    318318
    319 const char *owl_zwrite_get_class(owl_zwrite *z)
     319const char *owl_zwrite_get_class(const owl_zwrite *z)
    320320{
    321321  return(z->class);
    322322}
    323323
    324 const char *owl_zwrite_get_instance(owl_zwrite *z)
     324const char *owl_zwrite_get_instance(const owl_zwrite *z)
    325325{
    326326  return(z->inst);
    327327}
    328328
    329 const char *owl_zwrite_get_opcode(owl_zwrite *z)
     329const char *owl_zwrite_get_opcode(const owl_zwrite *z)
    330330{
    331331  return(z->opcode);
     
    338338}
    339339
    340 const char *owl_zwrite_get_realm(owl_zwrite *z)
     340const char *owl_zwrite_get_realm(const owl_zwrite *z)
    341341{
    342342  return(z->realm);
    343343}
    344344
    345 const char *owl_zwrite_get_zsig(owl_zwrite *z)
     345const char *owl_zwrite_get_zsig(const owl_zwrite *z)
    346346{
    347347  if (z->zsig) return(z->zsig);
     
    349349}
    350350
    351 void owl_zwrite_get_recipstr(owl_zwrite *z, char *buff)
     351void owl_zwrite_get_recipstr(const owl_zwrite *z, char *buff)
    352352{
    353353  int i, j;
     
    362362}
    363363
    364 int owl_zwrite_get_numrecips(owl_zwrite *z)
     364int owl_zwrite_get_numrecips(const owl_zwrite *z)
    365365{
    366366  return(owl_list_get_size(&(z->recips)));
    367367}
    368368
    369 const char *owl_zwrite_get_recip_n(owl_zwrite *z, int n)
     369const char *owl_zwrite_get_recip_n(const owl_zwrite *z, int n)
    370370{
    371371  return(owl_list_get_element(&(z->recips), n));
    372372}
    373373
    374 int owl_zwrite_is_personal(owl_zwrite *z)
     374int owl_zwrite_is_personal(const owl_zwrite *z)
    375375{
    376376  /* return true if at least one of the recipients is personal */
Note: See TracChangeset for help on using the changeset viewer.