- Timestamp:
- Aug 15, 2009, 7:08:18 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:
- 1077891a
- Parents:
- fa4562c
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
rfa4562c re19eb97 187 187 } 188 188 189 c har *owl_zephyr_get_sender()189 const char *owl_zephyr_get_sender() 190 190 { 191 191 #ifdef HAVE_LIBZEPHYR … … 235 235 * zephyr to load the subscriptions. 236 236 */ 237 int owl_zephyr_loadsubs(c har *filename, int error_on_nofile)237 int owl_zephyr_loadsubs(const char *filename, int error_on_nofile) 238 238 { 239 239 #ifdef HAVE_LIBZEPHYR … … 350 350 } 351 351 352 int owl_zephyr_loadloginsubs(c har *filename)352 int owl_zephyr_loadloginsubs(const char *filename) 353 353 { 354 354 #ifdef HAVE_LIBZEPHYR … … 422 422 } 423 423 424 int owl_zephyr_sub(c har *class, char *inst,char *recip)424 int owl_zephyr_sub(const char *class, const char *inst, const char *recip) 425 425 { 426 426 #ifdef HAVE_LIBZEPHYR … … 443 443 444 444 445 int owl_zephyr_unsub(c har *class, char *inst,char *recip)445 int owl_zephyr_unsub(const char *class, const char *inst, const char *recip) 446 446 { 447 447 #ifdef HAVE_LIBZEPHYR … … 635 635 636 636 #ifdef HAVE_LIBZEPHYR 637 c har *owl_zephyr_get_zsig(ZNotice_t *n, int *k)637 const char *owl_zephyr_get_zsig(ZNotice_t *n, int *k) 638 638 { 639 639 /* return a pointer to the zsig if there is one */ … … 656 656 } 657 657 #else 658 c har *owl_zephyr_get_zsig(void *n, int *k)658 const char *owl_zephyr_get_zsig(void *n, int *k) 659 659 { 660 660 return(""); … … 662 662 #endif 663 663 664 int send_zephyr(c har *opcode, char *zsig, char *class, char *instance, char *recipient,char *message)664 int send_zephyr(const char *opcode, const char *zsig, const char *class, const char *instance, const char *recipient, const char *message) 665 665 { 666 666 #ifdef HAVE_LIBZEPHYR … … 717 717 #endif 718 718 719 void send_ping(c har *to, char *zclass,char *zinstance)719 void send_ping(const char *to, const char *zclass, const char *zinstance) 720 720 { 721 721 #ifdef HAVE_LIBZEPHYR … … 885 885 #endif 886 886 887 void owl_zephyr_zlocate(c har *user, char *out, int auth)887 void owl_zephyr_zlocate(const char *user, char *out, int auth) 888 888 { 889 889 #ifdef HAVE_LIBZEPHYR … … 920 920 } 921 921 922 void owl_zephyr_addsub(c har *filename, char *class, char *inst,char *recip)922 void owl_zephyr_addsub(const char *filename, const char *class, const char *inst, const char *recip) 923 923 { 924 924 #ifdef HAVE_LIBZEPHYR … … 963 963 } 964 964 965 void owl_zephyr_delsub(c har *filename, char *class, char *inst,char *recip)965 void owl_zephyr_delsub(const char *filename, const char *class, const char *inst, const char *recip) 966 966 { 967 967 #ifdef HAVE_LIBZEPHYR … … 985 985 986 986 /* caller must free the return */ 987 char *owl_zephyr_makesubline(c har *class, char *inst,char *recip)987 char *owl_zephyr_makesubline(const char *class, const char *inst, const char *recip) 988 988 { 989 989 char *out; … … 998 998 { 999 999 #ifdef HAVE_LIBZEPHYR 1000 c har *exposure, *eset;1000 const char *exposure, *eset; 1001 1001 int ret; 1002 1002 … … 1049 1049 } 1050 1050 1051 void owl_zephyr_addbuddy(c har *name)1051 void owl_zephyr_addbuddy(const char *name) 1052 1052 { 1053 1053 char *filename; … … 1065 1065 } 1066 1066 1067 void owl_zephyr_delbuddy(c har *name)1067 void owl_zephyr_delbuddy(const char *name) 1068 1068 { 1069 1069 char *filename; … … 1076 1076 /* return auth string */ 1077 1077 #ifdef HAVE_LIBZEPHYR 1078 c har *owl_zephyr_get_authstr(ZNotice_t *n)1078 const char *owl_zephyr_get_authstr(ZNotice_t *n) 1079 1079 { 1080 1080 … … 1092 1092 } 1093 1093 #else 1094 c har *owl_zephyr_get_authstr(void *n)1094 const char *owl_zephyr_get_authstr(void *n) 1095 1095 { 1096 1096 return(""); … … 1156 1156 } 1157 1157 1158 c har *owl_zephyr_get_variable(char *var)1158 const char *owl_zephyr_get_variable(const char *var) 1159 1159 { 1160 1160 #ifdef HAVE_LIBZEPHYR … … 1165 1165 } 1166 1166 1167 void owl_zephyr_set_locationinfo(c har *host,char *val)1167 void owl_zephyr_set_locationinfo(const char *host, const char *val) 1168 1168 { 1169 1169 #ifdef HAVE_LIBZEPHYR … … 1175 1175 * The caller must free the return 1176 1176 */ 1177 char *short_zuser(c har *in)1177 char *short_zuser(const char *in) 1178 1178 { 1179 1179 char *out, *ptr; … … 1192 1192 * The caller must free the return. 1193 1193 */ 1194 char *long_zuser(c har *in)1194 char *long_zuser(const char *in) 1195 1195 { 1196 1196 if (strchr(in, '@')) { … … 1204 1204 * caller must free the return 1205 1205 */ 1206 char *owl_zephyr_smartstripped_user(c har *in)1206 char *owl_zephyr_smartstripped_user(const char *in) 1207 1207 { 1208 1208 char *ptr, *realm, *out; … … 1247 1247 * -1 on failure, 0 on success. 1248 1248 */ 1249 int owl_zephyr_get_anyone_list(owl_list *in, c har *filename)1249 int owl_zephyr_get_anyone_list(owl_list *in, const char *filename) 1250 1250 { 1251 1251 #ifdef HAVE_LIBZEPHYR
Note: See TracChangeset
for help on using the changeset viewer.