1 | /* -------------------------------- aim.c -------------------------------- */ |
---|
2 | extern void owl_aim_init(void); |
---|
3 | extern int owl_aim_login(char *screenname, char *password); |
---|
4 | extern void owl_aim_logout(void); |
---|
5 | extern int owl_aim_send_im(char *to, char *msg); |
---|
6 | extern void owl_aim_addbuddy(char *screenname); |
---|
7 | extern void owl_aim_delbuddy(char *screenname); |
---|
8 | extern void owl_aim_chat_join(char *chatroom); |
---|
9 | extern void owl_aim_chat_leave(char *chatroom); |
---|
10 | extern int owl_aim_chat_sendmsg(char *chatroom, char *msg); |
---|
11 | extern char *owl_aim_normalize_screenname(char *in); |
---|
12 | extern int owl_aim_process_events(); |
---|
13 | extern int faimtest_flapversion(aim_session_t *sess, aim_frame_t *fr, ...); |
---|
14 | extern int faimtest_conncomplete(aim_session_t *sess, aim_frame_t *fr, ...); |
---|
15 | extern void addcb_bos(aim_session_t *sess, aim_conn_t *bosconn); |
---|
16 | extern int login(aim_session_t *sess, const char *sn, const char *passwd); |
---|
17 | extern int logout(aim_session_t *sess); |
---|
18 | extern int faimtest_parse_genericerr(aim_session_t *sess, aim_frame_t *fr, ...); |
---|
19 | extern void chatnav_redirect(aim_session_t *sess, struct aim_redirect_data *redir); |
---|
20 | extern void chat_redirect(aim_session_t *sess, struct aim_redirect_data *redir); |
---|
21 | extern void getfile_start(aim_session_t *sess, aim_conn_t *conn, const char *sn); |
---|
22 | extern void getfile_requested(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *userinfo, struct aim_incomingim_ch2_args *args); |
---|
23 | extern void directim_start(aim_session_t *sess, const char *sn); |
---|
24 | extern void directim_requested(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *userinfo, struct aim_incomingim_ch2_args *args); |
---|
25 | |
---|
26 | /* -------------------------------- buddylist.c -------------------------------- */ |
---|
27 | extern void owl_buddylist_init(owl_buddylist *b); |
---|
28 | extern void owl_buddylist_oncoming(owl_buddylist *b, char *screenname); |
---|
29 | extern void owl_buddylist_offgoing(owl_buddylist *b, char *screenname); |
---|
30 | extern int owl_buddylist_get_size(owl_buddylist *b); |
---|
31 | extern char *owl_buddylist_get_buddy(owl_buddylist *b, int n); |
---|
32 | extern void owl_buddylist_clear(owl_buddylist *b); |
---|
33 | |
---|
34 | /* -------------------------------- cmd.c -------------------------------- */ |
---|
35 | extern int owl_cmddict_setup(owl_cmddict *cd); |
---|
36 | extern int owl_cmddict_init(owl_cmddict *cd); |
---|
37 | extern int owl_cmddict_add_from_list(owl_cmddict *cd, owl_cmd *cmds); |
---|
38 | extern void owl_cmddict_get_names(owl_cmddict *d, owl_list *l); |
---|
39 | extern owl_cmd *owl_cmddict_find(owl_cmddict *d, char *name); |
---|
40 | extern void owl_cmddict_namelist_free(owl_list *l); |
---|
41 | extern int owl_cmddict_add_alias(owl_cmddict *cd, char *alias_from, char *alias_to); |
---|
42 | extern char *owl_cmddict_execute(owl_cmddict *cd, owl_context *ctx, char *cmdbuff); |
---|
43 | extern int owl_cmd_create_from_template(owl_cmd *cmd, owl_cmd *templ); |
---|
44 | extern int owl_cmd_create_alias(owl_cmd *cmd, char *name, char *aliased_to); |
---|
45 | extern void owl_cmd_free(owl_cmd *cmd); |
---|
46 | extern int owl_cmd_is_context_valid(owl_cmd *cmd, owl_context *ctx); |
---|
47 | extern char *owl_cmd_execute(owl_cmd *cmd, owl_cmddict *cd, owl_context *ctx, int argc, char **argv, char *cmdbuff); |
---|
48 | extern char *owl_cmd_get_summary(owl_cmd *cmd); |
---|
49 | extern char *owl_cmd_describe(owl_cmd *cmd); |
---|
50 | extern void owl_cmd_get_help(owl_cmddict *d, char *name, owl_fmtext *fm); |
---|
51 | |
---|
52 | /* -------------------------------- commands.c -------------------------------- */ |
---|
53 | extern void owl_command_info(); |
---|
54 | extern void owl_command_nop(); |
---|
55 | extern char *owl_command_help(int argc, char **argv, char *buff); |
---|
56 | extern char *owl_command_zlist(int argc, char **argv, char *buff); |
---|
57 | extern char *owl_command_alist(); |
---|
58 | extern char *owl_command_blist(); |
---|
59 | extern void owl_command_about(); |
---|
60 | extern void owl_command_version(); |
---|
61 | extern char *owl_command_addbuddy(int argc, char **argv, char *buff); |
---|
62 | extern char *owl_command_delbuddy(int argc, char **argv, char *buff); |
---|
63 | extern char *owl_command_startup(int argc, char **argv, char *buff); |
---|
64 | extern char *owl_command_unstartup(int argc, char **argv, char *buff); |
---|
65 | extern char *owl_command_dump(int argc, char **argv, char *buff); |
---|
66 | extern char *owl_command_next(int argc, char **argv, char *buff); |
---|
67 | extern char *owl_command_prev(int argc, char **argv, char *buff); |
---|
68 | extern char *owl_command_smartnarrow(int argc, char **argv, char *buff); |
---|
69 | extern char *owl_command_smartfilter(int argc, char **argv, char *buff); |
---|
70 | extern void owl_command_expunge(); |
---|
71 | extern void owl_command_first(); |
---|
72 | extern void owl_command_last(); |
---|
73 | extern void owl_command_resize(); |
---|
74 | extern void owl_command_redisplay(); |
---|
75 | extern void owl_command_shift_right(); |
---|
76 | extern void owl_command_shift_left(); |
---|
77 | extern void owl_command_unsuball(); |
---|
78 | extern char *owl_command_loadsubs(int argc, char **argv, char *buff); |
---|
79 | extern char *owl_command_loadloginsubs(int argc, char **argv, char *buff); |
---|
80 | extern void owl_command_suspend(); |
---|
81 | extern char *owl_command_start_command(int argc, char **argv, char *buff); |
---|
82 | extern char *owl_command_zaway(int argc, char **argv, char *buff); |
---|
83 | extern char *owl_command_set(int argc, char **argv, char *buff); |
---|
84 | extern char *owl_command_unset(int argc, char **argv, char *buff); |
---|
85 | extern char *owl_command_print(int argc, char **argv, char *buff); |
---|
86 | extern char *owl_command_exec(int argc, char **argv, char *buff); |
---|
87 | extern char *owl_command_pexec(int argc, char **argv, char *buff); |
---|
88 | extern char *owl_command_aexec(int argc, char **argv, char *buff); |
---|
89 | extern char *owl_command_perl(int argc, char **argv, char *buff); |
---|
90 | extern char *owl_command_pperl(int argc, char **argv, char *buff); |
---|
91 | extern char *owl_command_aperl(int argc, char **argv, char *buff); |
---|
92 | extern char *owl_command_multi(int argc, char **argv, char *buff); |
---|
93 | extern char *owl_command_alias(int argc, char **argv, char *buff); |
---|
94 | extern char *owl_command_bindkey(int argc, char **argv, char *buff); |
---|
95 | extern void owl_command_quit(); |
---|
96 | extern char *owl_command_debug(int argc, char **argv, char *buff); |
---|
97 | extern char *owl_command_term(int argc, char **argv, char *buff); |
---|
98 | extern char *owl_command_zlog(int argc, char **argv, char *buff); |
---|
99 | extern void owl_command_zlog_out(void); |
---|
100 | extern char *owl_command_subscribe(int argc, char **argv, char *buff); |
---|
101 | extern char *owl_command_unsubscribe(int argc, char **argv, char *buff); |
---|
102 | extern char *owl_command_echo(int argc, char **argv, char *buff); |
---|
103 | extern void owl_command_getsubs(); |
---|
104 | extern void owl_command_status(); |
---|
105 | extern char *owl_command_zwrite(int argc, char **argv, char *buff); |
---|
106 | extern char *owl_command_aimwrite(int argc, char **argv, char *buff); |
---|
107 | extern char *owl_command_zcrypt(int argc, char **argv, char *buff); |
---|
108 | extern char *owl_command_reply(int argc, char **argv, char *buff); |
---|
109 | extern char *owl_command_filter(int argc, char **argv, char *buff); |
---|
110 | extern char *owl_command_zlocate(int argc, char **argv, char *buff); |
---|
111 | extern char *owl_command_view(int argc, char **argv, char *buff); |
---|
112 | extern char *owl_command_show(int argc, char **argv, char *buff); |
---|
113 | extern char *owl_command_viewclass(int argc, char **argv, char *buff); |
---|
114 | extern char *owl_command_viewuser(int argc, char **argv, char *buff); |
---|
115 | extern void owl_command_pop_message(void); |
---|
116 | extern void owl_command_openurl(void); |
---|
117 | extern char *owl_command_delete(int argc, char **argv, char *buff); |
---|
118 | extern char *owl_command_undelete(int argc, char **argv, char *buff); |
---|
119 | extern void owl_command_beep(); |
---|
120 | extern char *owl_command_colorview(int argc, char **argv, char *buff); |
---|
121 | extern char *owl_command_zpunt(int argc, char **argv, char *buff); |
---|
122 | extern char *owl_command_zunpunt(int argc, char **argv, char *buff); |
---|
123 | extern void owl_command_zpunt_and_zunpunt(int argc, char **argv, int type); |
---|
124 | extern char *owl_command_smartzpunt(int argc, char **argv, char *buff); |
---|
125 | extern char *owl_command_getview(int argc, char **argv, char *buff); |
---|
126 | extern char *owl_command_getvar(int argc, char **argv, char *buff); |
---|
127 | extern char *owl_command_search(int argc, char **argv, char *buff); |
---|
128 | extern char *owl_command_aimlogin(int argc, char **argv, char *buff); |
---|
129 | extern char *owl_command_aimlogout(int argc, char **argv, char *buff); |
---|
130 | extern void owl_command_edit_cancel(owl_editwin *e); |
---|
131 | extern void owl_command_edit_history_prev(owl_editwin *e); |
---|
132 | extern void owl_command_edit_history_next(owl_editwin *e); |
---|
133 | extern char *owl_command_edit_insert_text(owl_editwin *e, int argc, char **argv, char *buff); |
---|
134 | extern void owl_command_editline_done(owl_editwin *e); |
---|
135 | extern void owl_command_editmulti_done(owl_editwin *e); |
---|
136 | extern void owl_command_editmulti_done_or_delete(owl_editwin *e); |
---|
137 | extern void owl_command_popless_quit(owl_viewwin *vw); |
---|
138 | |
---|
139 | /* -------------------------------- context.c -------------------------------- */ |
---|
140 | extern int owl_context_init(owl_context *ctx); |
---|
141 | extern int owl_context_matches(owl_context *ctx, int test); |
---|
142 | extern void *owl_context_get_data(owl_context *ctx); |
---|
143 | extern int owl_context_get_mode(owl_context *ctx); |
---|
144 | extern int owl_context_get_active(owl_context *ctx); |
---|
145 | extern int owl_context_is_startup(owl_context *ctx); |
---|
146 | extern int owl_context_is_interactive(owl_context *ctx); |
---|
147 | extern void owl_context_set_startup(owl_context *ctx); |
---|
148 | extern void owl_context_set_readconfig(owl_context *ctx); |
---|
149 | extern void owl_context_set_interactive(owl_context *ctx); |
---|
150 | extern void owl_context_set_popless(owl_context *ctx, owl_viewwin *vw); |
---|
151 | extern void owl_context_set_recv(owl_context *ctx); |
---|
152 | extern void owl_context_set_editmulti(owl_context *ctx, owl_editwin *ew); |
---|
153 | extern void owl_context_set_editline(owl_context *ctx, owl_editwin *ew); |
---|
154 | |
---|
155 | /* -------------------------------- dict.c -------------------------------- */ |
---|
156 | extern int owl_dict_create(owl_dict *d); |
---|
157 | extern int owl_dict_get_size(owl_dict *d); |
---|
158 | extern int _owl_dict_find_pos(owl_dict *d, char *k, int *pos); |
---|
159 | extern void *owl_dict_find_element(owl_dict *d, char *k); |
---|
160 | extern int owl_dict_get_keys(owl_dict *d, owl_list *l); |
---|
161 | extern void owl_dict_noop_free(void *x); |
---|
162 | extern int owl_dict_insert_element(owl_dict *d, char *k, void *v, void (*free_on_replace)(void *old)); |
---|
163 | extern void *owl_dict_remove_element(owl_dict *d, char *k); |
---|
164 | extern void owl_dict_free_all(owl_dict *d, void (*elefree)(void *)); |
---|
165 | extern void owl_dict_free_simple(owl_dict *d); |
---|
166 | extern int owl_dict_regtest(void); |
---|
167 | |
---|
168 | /* -------------------------------- editwin.c -------------------------------- */ |
---|
169 | extern void owl_editwin_init(owl_editwin *e, WINDOW *win, int winlines, int wincols, int style, owl_history *hist); |
---|
170 | extern void owl_editwin_set_curswin(owl_editwin *e, WINDOW *w, int winlines, int wincols); |
---|
171 | extern WINDOW *owl_editwin_get_curswin(owl_editwin *e); |
---|
172 | extern void owl_editwin_set_history(owl_editwin *e, owl_history *h); |
---|
173 | extern owl_history *owl_editwin_get_history(owl_editwin *e); |
---|
174 | extern void owl_editwin_set_dotsend(owl_editwin *e); |
---|
175 | extern int owl_editwin_limit_maxcols(int v, int maxv); |
---|
176 | extern void owl_editwin_set_locktext(owl_editwin *e, char *text); |
---|
177 | extern int owl_editwin_get_style(owl_editwin *e); |
---|
178 | extern void owl_editwin_new_style(owl_editwin *e, int newstyle, owl_history *h); |
---|
179 | extern void owl_editwin_fullclear(owl_editwin *e); |
---|
180 | extern void owl_editwin_clear(owl_editwin *e); |
---|
181 | extern void _owl_editwin_addspace(owl_editwin *e); |
---|
182 | extern void owl_editwin_recenter(owl_editwin *e); |
---|
183 | extern void owl_editwin_redisplay(owl_editwin *e, int update); |
---|
184 | extern int _owl_editwin_linewrap_word(owl_editwin *e); |
---|
185 | extern void owl_editwin_insert_char(owl_editwin *e, char c); |
---|
186 | extern void owl_editwin_overwrite_char(owl_editwin *e, char c); |
---|
187 | extern void owl_editwin_delete_char(owl_editwin *e); |
---|
188 | extern void owl_editwin_transpose_chars(owl_editwin *e); |
---|
189 | extern void owl_editwin_insert_string(owl_editwin *e, char *string); |
---|
190 | extern void owl_editwin_overwrite_string(owl_editwin *e, char *string); |
---|
191 | extern int _owl_editwin_get_index_from_xy(owl_editwin *e); |
---|
192 | extern void _owl_editwin_set_xy_by_index(owl_editwin *e, int index); |
---|
193 | extern void owl_editwin_adjust_for_locktext(owl_editwin *e); |
---|
194 | extern void owl_editwin_backspace(owl_editwin *e); |
---|
195 | extern void owl_editwin_key_up(owl_editwin *e); |
---|
196 | extern void owl_editwin_key_down(owl_editwin *e); |
---|
197 | extern void owl_editwin_key_left(owl_editwin *e); |
---|
198 | extern void owl_editwin_key_right(owl_editwin *e); |
---|
199 | extern void owl_editwin_move_to_nextword(owl_editwin *e); |
---|
200 | extern void owl_editwin_move_to_previousword(owl_editwin *e); |
---|
201 | extern void owl_editwin_delete_nextword(owl_editwin *e); |
---|
202 | extern void owl_editwin_delete_previousword(owl_editwin *e); |
---|
203 | extern void owl_editwin_delete_to_endofline(owl_editwin *e); |
---|
204 | extern void owl_editwin_move_to_line_end(owl_editwin *e); |
---|
205 | extern void owl_editwin_move_to_line_start(owl_editwin *e); |
---|
206 | extern void owl_editwin_move_to_end(owl_editwin *e); |
---|
207 | extern void owl_editwin_move_to_top(owl_editwin *e); |
---|
208 | extern void owl_editwin_fill_paragraph(owl_editwin *e); |
---|
209 | extern int owl_editwin_is_at_end(owl_editwin *e); |
---|
210 | extern int owl_editwin_check_dotsend(owl_editwin *e); |
---|
211 | extern void owl_editwin_post_process_char(owl_editwin *e, int j); |
---|
212 | extern void owl_editwin_process_char(owl_editwin *e, int j); |
---|
213 | extern char *owl_editwin_get_text(owl_editwin *e); |
---|
214 | extern int owl_editwin_get_numchars_on_line(owl_editwin *e, int line); |
---|
215 | extern int owl_editwin_get_numlines(owl_editwin *e); |
---|
216 | |
---|
217 | /* -------------------------------- filter.c -------------------------------- */ |
---|
218 | extern int owl_filter_init_fromstring(owl_filter *f, char *name, char *string); |
---|
219 | extern int owl_filter_init(owl_filter *f, char *name, int argc, char **argv); |
---|
220 | extern char *owl_filter_get_name(owl_filter *f); |
---|
221 | extern void owl_filter_set_polarity_match(owl_filter *f); |
---|
222 | extern void owl_filter_set_polarity_unmatch(owl_filter *f); |
---|
223 | extern void owl_filter_set_color(owl_filter *f, int color); |
---|
224 | extern int owl_filter_get_color(owl_filter *f); |
---|
225 | extern void owl_filter_set_cachedmsgid(owl_filter *f, int cachedmsgid); |
---|
226 | extern int owl_filter_get_cachedmsgid(owl_filter *f); |
---|
227 | extern int owl_filter_message_match(owl_filter *f, owl_message *m); |
---|
228 | extern int _owl_filter_message_match_recurse(owl_filter *f, owl_message *m, owl_list *fes, int start, int end); |
---|
229 | extern void owl_filter_print(owl_filter *f, char *out); |
---|
230 | extern int owl_filter_equiv(owl_filter *a, owl_filter *b); |
---|
231 | extern void owl_filter_free(owl_filter *f); |
---|
232 | |
---|
233 | /* -------------------------------- filterelement.c -------------------------------- */ |
---|
234 | extern void owl_filterelement_create_null(owl_filterelement *fe); |
---|
235 | extern void owl_filterelement_create_openbrace(owl_filterelement *fe); |
---|
236 | extern void owl_filterelement_create_closebrace(owl_filterelement *fe); |
---|
237 | extern void owl_filterelement_create_and(owl_filterelement *fe); |
---|
238 | extern void owl_filterelement_create_or(owl_filterelement *fe); |
---|
239 | extern void owl_filterelement_create_not(owl_filterelement *fe); |
---|
240 | extern void owl_filterelement_create_true(owl_filterelement *fe); |
---|
241 | extern void owl_filterelement_create_false(owl_filterelement *fe); |
---|
242 | extern void owl_filterelement_create_re(owl_filterelement *fe, char *field, char *re); |
---|
243 | extern void owl_filterelement_free(owl_filterelement *fe); |
---|
244 | extern int owl_filterelement_is_null(owl_filterelement *fe); |
---|
245 | extern int owl_filterelement_is_openbrace(owl_filterelement *fe); |
---|
246 | extern int owl_filterelement_is_closebrace(owl_filterelement *fe); |
---|
247 | extern int owl_filterelement_is_and(owl_filterelement *fe); |
---|
248 | extern int owl_filterelement_is_or(owl_filterelement *fe); |
---|
249 | extern int owl_filterelement_is_not(owl_filterelement *fe); |
---|
250 | extern int owl_filterelement_is_true(owl_filterelement *fe); |
---|
251 | extern int owl_filterelement_is_false(owl_filterelement *fe); |
---|
252 | extern int owl_filterelement_is_re(owl_filterelement *fe); |
---|
253 | extern owl_regex *owl_filterelement_get_re(owl_filterelement *fe); |
---|
254 | extern char *owl_filterelement_get_field(owl_filterelement *fe); |
---|
255 | extern int owl_filterelement_is_value(owl_filterelement *fe); |
---|
256 | extern char *owl_filterelement_to_string(owl_filterelement *fe); |
---|
257 | |
---|
258 | /* -------------------------------- fmtext.c -------------------------------- */ |
---|
259 | extern void owl_fmtext_init_null(owl_fmtext *f); |
---|
260 | extern void _owl_fmtext_set_attr(owl_fmtext *f, int attr, int first, int last); |
---|
261 | extern void _owl_fmtext_add_attr(owl_fmtext *f, int attr, int first, int last); |
---|
262 | extern void _owl_fmtext_set_color(owl_fmtext *f, int color, int first, int last); |
---|
263 | extern void owl_fmtext_append_attr(owl_fmtext *f, char *text, int attr, int color); |
---|
264 | extern void owl_fmtext_append_normal(owl_fmtext *f, char *text); |
---|
265 | extern void owl_fmtext_append_normal_color(owl_fmtext *f, char *text, int color); |
---|
266 | extern void owl_fmtext_append_bold(owl_fmtext *f, char *text); |
---|
267 | extern void owl_fmtext_append_reverse(owl_fmtext *f, char *text); |
---|
268 | extern void owl_fmtext_append_reversebold(owl_fmtext *f, char *text); |
---|
269 | extern void owl_fmtext_addattr(owl_fmtext *f, int attr); |
---|
270 | extern void owl_fmtext_colorize(owl_fmtext *f, int color); |
---|
271 | extern void owl_fmtext_append_ztext(owl_fmtext *f, char *text); |
---|
272 | extern void _owl_fmtext_append_fmtext(owl_fmtext *f, owl_fmtext *in, int start, int stop); |
---|
273 | extern void owl_fmtext_append_fmtext(owl_fmtext *f, owl_fmtext *in); |
---|
274 | extern void owl_fmtext_append_spaces(owl_fmtext *f, int nspaces); |
---|
275 | extern void owl_fmtext_append_list(owl_fmtext *f, owl_list *l, char *join_with, char *(format_fn)(void*)); |
---|
276 | extern char *owl_fmtext_print_plain(owl_fmtext *f); |
---|
277 | extern void owl_fmtext_curs_waddstr(owl_fmtext *f, WINDOW *w); |
---|
278 | extern int owl_fmtext_truncate_lines(owl_fmtext *in, int aline, int lines, owl_fmtext *out); |
---|
279 | extern void owl_fmtext_truncate_cols(owl_fmtext *in, int acol, int bcol, owl_fmtext *out); |
---|
280 | extern int owl_fmtext_num_lines(owl_fmtext *f); |
---|
281 | extern char *owl_fmtext_get_text(owl_fmtext *f); |
---|
282 | extern void owl_fmtext_set_char(owl_fmtext *f, int index, int ch); |
---|
283 | extern void owl_fmtext_free(owl_fmtext *f); |
---|
284 | extern void owl_fmtext_copy(owl_fmtext *dst, owl_fmtext *src); |
---|
285 | extern int owl_fmtext_search_and_highlight(owl_fmtext *f, char *string); |
---|
286 | extern int owl_fmtext_search(owl_fmtext *f, char *string); |
---|
287 | |
---|
288 | /* -------------------------------- functions.c -------------------------------- */ |
---|
289 | extern void owl_function_noop(void); |
---|
290 | extern char *owl_function_command(char *cmdbuff); |
---|
291 | extern void owl_function_command_norv(char *cmdbuff); |
---|
292 | extern void owl_function_command_alias(char *alias_from, char *alias_to); |
---|
293 | extern owl_cmd *owl_function_get_cmd(char *name); |
---|
294 | extern void owl_function_show_commands(); |
---|
295 | extern char *owl_function_cmd_describe(void *name); |
---|
296 | extern void owl_function_show_command(char *name); |
---|
297 | extern void owl_function_adminmsg(char *header, char *body); |
---|
298 | extern void owl_function_make_outgoing_zephyr(char *body, char *zwriteline, char *zsig); |
---|
299 | extern int owl_function_make_outgoing_aim(char *body, char *to); |
---|
300 | extern void owl_function_zwrite_setup(char *line); |
---|
301 | extern void owl_function_aimwrite_setup(char *line); |
---|
302 | extern void owl_function_zcrypt_setup(char *line); |
---|
303 | extern void owl_function_zwrite(char *line); |
---|
304 | extern void owl_function_aimwrite(char *to); |
---|
305 | extern void owl_function_nextmsg_full(char *filter, int skip_deleted, int last_if_none); |
---|
306 | extern void owl_function_prevmsg_full(char *filter, int skip_deleted, int first_if_none); |
---|
307 | extern void owl_function_nextmsg(); |
---|
308 | extern void owl_function_prevmsg(); |
---|
309 | extern void owl_function_nextmsg_notdeleted(); |
---|
310 | extern void owl_function_prevmsg_notdeleted(); |
---|
311 | extern void owl_function_nextmsg_personal(); |
---|
312 | extern void owl_function_prevmsg_personal(); |
---|
313 | extern void owl_function_deletecur(int move_after); |
---|
314 | extern void owl_function_undeletecur(int move_after); |
---|
315 | extern void owl_function_expunge(); |
---|
316 | extern void owl_function_firstmsg(); |
---|
317 | extern void owl_function_lastmsg_noredisplay(); |
---|
318 | extern void owl_function_lastmsg(); |
---|
319 | extern void owl_function_shift_right(); |
---|
320 | extern void owl_function_shift_left(); |
---|
321 | extern void owl_function_unsuball(); |
---|
322 | extern void owl_function_loadsubs(char *file); |
---|
323 | extern void owl_function_loadloginsubs(char *file); |
---|
324 | extern void owl_function_suspend(); |
---|
325 | extern void owl_function_zaway_toggle(); |
---|
326 | extern void owl_function_zaway_on(); |
---|
327 | extern void owl_function_zaway_off(); |
---|
328 | extern void owl_function_quit(); |
---|
329 | extern void owl_function_makemsg(char *fmt, ...); |
---|
330 | extern void owl_function_errormsg(char *fmt, ...); |
---|
331 | extern void owl_function_openurl(); |
---|
332 | extern void owl_function_calculate_topmsg(int direction); |
---|
333 | extern int owl_function_calculate_topmsg_top(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines); |
---|
334 | extern int owl_function_calculate_topmsg_neartop(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines); |
---|
335 | extern int owl_function_calculate_topmsg_center(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines); |
---|
336 | extern int owl_function_calculate_topmsg_paged(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines, int center_on_page); |
---|
337 | extern int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines); |
---|
338 | extern void owl_function_resize(); |
---|
339 | extern void owl_function_run_buffercommand(); |
---|
340 | extern void owl_function_debugmsg(char *fmt, ...); |
---|
341 | extern void owl_function_refresh(); |
---|
342 | extern void owl_function_beep(); |
---|
343 | extern void owl_function_subscribe(char *class, char *inst, char *recip); |
---|
344 | extern void owl_function_unsubscribe(char *class, char *inst, char *recip); |
---|
345 | extern void owl_function_set_cursor(WINDOW *win); |
---|
346 | extern void owl_function_full_redisplay(); |
---|
347 | extern void owl_function_popless_text(char *text); |
---|
348 | extern void owl_function_popless_fmtext(owl_fmtext *fm); |
---|
349 | extern void owl_function_about(); |
---|
350 | extern void owl_function_info(); |
---|
351 | extern void owl_function_curmsg_to_popwin(); |
---|
352 | extern void owl_function_page_curmsg(int step); |
---|
353 | extern void owl_function_resize_typwin(int newsize); |
---|
354 | extern void owl_function_typwin_grow(); |
---|
355 | extern void owl_function_typwin_shrink(); |
---|
356 | extern void owl_function_mainwin_pagedown(); |
---|
357 | extern void owl_function_mainwin_pageup(); |
---|
358 | extern void owl_function_getsubs(); |
---|
359 | extern void owl_function_printallvars(); |
---|
360 | extern void owl_function_show_variables(); |
---|
361 | extern void owl_function_show_variable(char *name); |
---|
362 | extern void owl_function_delete_by_id(int id, int flag); |
---|
363 | extern void owl_function_delete_automsgs(); |
---|
364 | extern void owl_function_status(); |
---|
365 | extern void owl_function_show_term(); |
---|
366 | extern void owl_function_reply(int type, int enter); |
---|
367 | extern void owl_function_zlocate(int argc, char **argv, int auth); |
---|
368 | extern void owl_function_start_command(char *line); |
---|
369 | extern char *owl_function_exec(int argc, char **argv, char *buff, int type); |
---|
370 | extern char *owl_function_perl(int argc, char **argv, char *buff, int type); |
---|
371 | extern void owl_function_change_view(char *filtname); |
---|
372 | extern void owl_function_create_filter(int argc, char **argv); |
---|
373 | extern void owl_function_show_filters(); |
---|
374 | extern void owl_function_show_filter(char *name); |
---|
375 | extern void owl_function_show_zpunts(); |
---|
376 | extern char *owl_function_classinstfilt(char *class, char *instance); |
---|
377 | extern char *owl_function_zuserfilt(char *user); |
---|
378 | extern char *owl_function_aimuserfilt(char *user); |
---|
379 | extern char *owl_function_typefilt(char *type); |
---|
380 | extern void owl_function_delete_curview_msgs(int flag); |
---|
381 | extern char *owl_function_smartfilter(int type); |
---|
382 | extern void owl_function_smartzpunt(int type); |
---|
383 | extern void owl_function_color_current_filter(char *color); |
---|
384 | extern void owl_function_show_colors(); |
---|
385 | extern void owl_function_zpunt(char *class, char *inst, char *recip, int direction); |
---|
386 | extern void owl_function_activate_keymap(char *keymap); |
---|
387 | extern void owl_function_show_keymaps(); |
---|
388 | extern char *owl_function_keymap_summary(void *name); |
---|
389 | extern void owl_function_show_keymap(char *name); |
---|
390 | extern void owl_function_help_for_command(char *cmdname); |
---|
391 | extern void owl_function_search_start(char *string, int direction); |
---|
392 | extern void owl_function_search_continue(int direction); |
---|
393 | extern void owl_function_search_helper(int mode, int direction); |
---|
394 | extern char *owl_function_ztext_stylestrip(char *zt); |
---|
395 | extern void owl_function_buddylist(int aim, int zephyr, char *file); |
---|
396 | extern void owl_function_dump(char *filename); |
---|
397 | extern void owl_function_do_newmsgproc(void); |
---|
398 | extern void owl_function_xterm_raise(void); |
---|
399 | extern void owl_function_xterm_deiconify(void); |
---|
400 | extern void owl_function_addstartup(char *buff); |
---|
401 | extern void owl_function_delstartup(char *buff); |
---|
402 | extern void owl_function_execstartup(void); |
---|
403 | |
---|
404 | /* -------------------------------- global.c -------------------------------- */ |
---|
405 | extern void owl_global_init(owl_global *g); |
---|
406 | extern void _owl_global_setup_windows(owl_global *g); |
---|
407 | extern owl_context *owl_global_get_context(owl_global *g); |
---|
408 | extern int owl_global_get_lines(owl_global *g); |
---|
409 | extern int owl_global_get_cols(owl_global *g); |
---|
410 | extern int owl_global_get_recwin_lines(owl_global *g); |
---|
411 | extern int owl_global_get_curmsg(owl_global *g); |
---|
412 | extern void owl_global_set_curmsg(owl_global *g, int i); |
---|
413 | extern int owl_global_get_topmsg(owl_global *g); |
---|
414 | extern void owl_global_set_topmsg(owl_global *g, int i); |
---|
415 | extern owl_mainwin *owl_global_get_mainwin(owl_global *g); |
---|
416 | extern owl_popwin *owl_global_get_popwin(owl_global *g); |
---|
417 | extern owl_messagelist *owl_global_get_msglist(owl_global *g); |
---|
418 | extern owl_keyhandler *owl_global_get_keyhandler(owl_global *g); |
---|
419 | extern WINDOW *owl_global_get_curs_recwin(owl_global *g); |
---|
420 | extern WINDOW *owl_global_get_curs_sepwin(owl_global *g); |
---|
421 | extern WINDOW *owl_global_get_curs_msgwin(owl_global *g); |
---|
422 | extern WINDOW *owl_global_get_curs_typwin(owl_global *g); |
---|
423 | extern owl_editwin *owl_global_get_typwin(owl_global *g); |
---|
424 | extern void owl_global_set_buffercommand(owl_global *g, char *command); |
---|
425 | extern char *owl_global_get_buffercommand(owl_global *g); |
---|
426 | extern int owl_global_is_needrefresh(owl_global *g); |
---|
427 | extern void owl_global_set_needrefresh(owl_global *g); |
---|
428 | extern void owl_global_set_noneedrefresh(owl_global *g); |
---|
429 | extern owl_vardict *owl_global_get_vardict(owl_global *g); |
---|
430 | extern owl_cmddict *owl_global_get_cmddict(owl_global *g); |
---|
431 | extern void owl_global_set_rightshift(owl_global *g, int i); |
---|
432 | extern int owl_global_get_rightshift(owl_global *g); |
---|
433 | extern int owl_global_is_typwin_active(owl_global *g); |
---|
434 | extern void owl_global_set_typwin_active(owl_global *g); |
---|
435 | extern void owl_global_set_typwin_inactive(owl_global *g); |
---|
436 | extern void owl_global_set_resize_pending(owl_global *g); |
---|
437 | extern char *owl_global_get_homedir(owl_global *g); |
---|
438 | extern int owl_global_get_direction(owl_global *g); |
---|
439 | extern void owl_global_set_direction_downwards(owl_global *g); |
---|
440 | extern void owl_global_set_direction_upwards(owl_global *g); |
---|
441 | extern void owl_global_set_perlinterp(owl_global *g, void *p); |
---|
442 | extern void *owl_global_get_perlinterp(owl_global *g); |
---|
443 | extern int owl_global_is_config_format(owl_global *g); |
---|
444 | extern void owl_global_set_config_format(owl_global *g, int state); |
---|
445 | extern void owl_global_set_have_config(owl_global *g); |
---|
446 | extern void owl_global_set_no_have_config(owl_global *g); |
---|
447 | extern int owl_global_have_config(owl_global *g); |
---|
448 | extern void owl_global_resize(owl_global *g, int x, int y); |
---|
449 | extern int owl_global_is_debug_fast(owl_global *g); |
---|
450 | extern time_t owl_global_get_starttime(owl_global *g); |
---|
451 | extern time_t owl_global_get_runtime(owl_global *g); |
---|
452 | extern void owl_global_get_runtime_string(owl_global *g, char *buff); |
---|
453 | extern char *owl_global_get_hostname(owl_global *g); |
---|
454 | extern void owl_global_set_userclue(owl_global *g, int clue); |
---|
455 | extern void owl_global_add_userclue(owl_global *g, int clue); |
---|
456 | extern int owl_global_get_userclue(owl_global *g); |
---|
457 | extern int owl_global_is_userclue(owl_global *g, int clue); |
---|
458 | extern owl_viewwin *owl_global_get_viewwin(owl_global *g); |
---|
459 | extern int owl_global_get_curmsg_vert_offset(owl_global *g); |
---|
460 | extern void owl_global_set_curmsg_vert_offset(owl_global *g, int i); |
---|
461 | extern void owl_global_set_startupargs(owl_global *g, int argc, char **argv); |
---|
462 | extern char *owl_global_get_startupargs(owl_global *g); |
---|
463 | extern owl_history *owl_global_get_msg_history(owl_global *g); |
---|
464 | extern owl_history *owl_global_get_cmd_history(owl_global *g); |
---|
465 | extern owl_list *owl_global_get_filterlist(owl_global *g); |
---|
466 | extern owl_filter *owl_global_get_filter(owl_global *g, char *name); |
---|
467 | extern void owl_global_add_filter(owl_global *g, owl_filter *f); |
---|
468 | extern void owl_global_remove_filter(owl_global *g, char *name); |
---|
469 | extern int owl_global_get_nextmsgid(owl_global *g); |
---|
470 | extern owl_view *owl_global_get_current_view(owl_global *g); |
---|
471 | extern owl_filterelement *owl_global_get_filterelement_true(owl_global *g); |
---|
472 | extern owl_filterelement *owl_global_get_filterelement_false(owl_global *g); |
---|
473 | extern owl_filterelement *owl_global_get_filterelement_null(owl_global *g); |
---|
474 | extern int owl_global_get_hascolors(owl_global *g); |
---|
475 | extern int owl_global_get_colorpairs(owl_global *g); |
---|
476 | extern owl_list *owl_global_get_puntlist(owl_global *g); |
---|
477 | extern int owl_global_message_is_puntable(owl_global *g, owl_message *m); |
---|
478 | extern int owl_global_should_followlast(owl_global *g); |
---|
479 | extern int owl_global_is_search_active(owl_global *g); |
---|
480 | extern void owl_global_set_search_active(owl_global *g, char *string); |
---|
481 | extern void owl_global_set_search_inactive(owl_global *g); |
---|
482 | extern char *owl_global_get_search_string(owl_global *g); |
---|
483 | extern void owl_global_set_newmsgproc_pid(owl_global *g, int i); |
---|
484 | extern int owl_global_get_newmsgproc_pid(owl_global *g); |
---|
485 | extern void owl_global_add_to_malloced(owl_global *g, int i); |
---|
486 | extern void owl_global_add_to_freed(owl_global *g, int i); |
---|
487 | extern int owl_global_get_malloced(owl_global *g); |
---|
488 | extern int owl_global_get_freed(owl_global *g); |
---|
489 | extern int owl_global_get_meminuse(owl_global *g); |
---|
490 | extern int owl_global_is_aimloggedin(owl_global *g); |
---|
491 | extern char *owl_global_get_aim_screenname(owl_global *g); |
---|
492 | extern void owl_global_set_aimloggedin(owl_global *g, char *screenname); |
---|
493 | extern void owl_global_set_aimnologgedin(owl_global *g); |
---|
494 | extern aim_session_t *owl_global_get_aimsess(owl_global *g); |
---|
495 | extern aim_conn_t *owl_global_get_waitingconn(owl_global *g); |
---|
496 | extern int owl_global_is_aimnop_time(owl_global *g); |
---|
497 | extern void owl_global_aimnop_sent(owl_global *g); |
---|
498 | extern owl_timer *owl_global_get_aim_login_timer(owl_global *g); |
---|
499 | extern void owl_global_messagequeue_addmsg(owl_global *g, owl_message *m); |
---|
500 | extern owl_message *owl_global_messageuque_popmsg(owl_global *g); |
---|
501 | extern int owl_global_messagequeue_pending(owl_global *g); |
---|
502 | extern owl_buddylist *owl_global_get_buddylist(owl_global *g); |
---|
503 | |
---|
504 | /* -------------------------------- help.c -------------------------------- */ |
---|
505 | extern void owl_help(); |
---|
506 | |
---|
507 | /* -------------------------------- history.c -------------------------------- */ |
---|
508 | extern void owl_history_init(owl_history *h); |
---|
509 | extern char *owl_history_get_prev(owl_history *h); |
---|
510 | extern char *owl_history_get_next(owl_history *h); |
---|
511 | extern void owl_history_store(owl_history *h, char *line); |
---|
512 | extern void owl_history_set_partial(owl_history *h); |
---|
513 | extern void owl_history_reset(owl_history *h); |
---|
514 | extern int owl_history_is_touched(owl_history *h); |
---|
515 | |
---|
516 | /* -------------------------------- keybinding.c -------------------------------- */ |
---|
517 | extern int owl_keybinding_init(owl_keybinding *kb, char *keyseq, char *command, void (*function_fn)(void), char *desc); |
---|
518 | extern void owl_keybinding_free(owl_keybinding *kb); |
---|
519 | extern void owl_keybinding_free_all(owl_keybinding *kb); |
---|
520 | extern void owl_keybinding_execute(owl_keybinding *kb, int j); |
---|
521 | extern int owl_keybinding_stack_tostring(int *j, char *buff, int bufflen); |
---|
522 | extern int owl_keybinding_tostring(owl_keybinding *kb, char *buff, int bufflen); |
---|
523 | extern char *owl_keybinding_get_desc(owl_keybinding *kb); |
---|
524 | extern int owl_keybinding_match(owl_keybinding *kb, int *kpstack); |
---|
525 | extern int owl_keybinding_equal(owl_keybinding *kb1, owl_keybinding *kb2); |
---|
526 | |
---|
527 | /* -------------------------------- keymap.c -------------------------------- */ |
---|
528 | extern int owl_keymap_init(owl_keymap *km, char *name, char *desc, void (*default_fn)(int), void (*prealways_fn)(int), void (*postalways_fn)(int)); |
---|
529 | extern void owl_keymap_free(owl_keymap *km); |
---|
530 | extern void owl_keymap_set_submap(owl_keymap *km, owl_keymap *submap); |
---|
531 | extern int owl_keymap_create_binding(owl_keymap *km, char *keyseq, char *command, void (*function_fn)(void), char *desc); |
---|
532 | extern char *owl_keymap_summary(owl_keymap *km); |
---|
533 | extern void owl_keymap_get_details(owl_keymap *km, owl_fmtext *fm); |
---|
534 | extern int owl_keyhandler_init(owl_keyhandler *kh); |
---|
535 | extern void owl_keyhandler_add_keymap(owl_keyhandler *kh, owl_keymap *km); |
---|
536 | extern owl_keymap *owl_keyhandler_create_and_add_keymap(owl_keyhandler *kh, char *name, char *desc, void (*default_fn)(int), void (*prealways_fn)(int), void (*postalways_fn)(int)); |
---|
537 | extern void owl_keyhandler_reset(owl_keyhandler *kh); |
---|
538 | extern owl_keymap *owl_keyhandler_get_keymap(owl_keyhandler *kh, char *mapname); |
---|
539 | extern void owl_keyhandler_get_keymap_names(owl_keyhandler *kh, owl_list *l); |
---|
540 | extern void owl_keyhandler_keymap_namelist_free(owl_list *l); |
---|
541 | extern owl_keymap *owl_keyhandler_activate(owl_keyhandler *kh, char *mapname); |
---|
542 | extern int owl_keyhandler_process(owl_keyhandler *kh, int j); |
---|
543 | extern void owl_keyhandler_invalidkey(owl_keyhandler *kh); |
---|
544 | |
---|
545 | /* -------------------------------- keypress.c -------------------------------- */ |
---|
546 | extern int owl_keypress_tostring(int j, int esc, char *buff, int bufflen); |
---|
547 | extern int owl_keypress_fromstring(char *kb); |
---|
548 | |
---|
549 | /* -------------------------------- keys.c -------------------------------- */ |
---|
550 | extern void owl_keys_setup_keymaps(owl_keyhandler *kh); |
---|
551 | extern void owl_keys_recwin_prealways(int j); |
---|
552 | extern void owl_keys_editwin_default(int j); |
---|
553 | extern void owl_keys_editwin_postalways(int j); |
---|
554 | extern void owl_keys_popless_postalways(int j); |
---|
555 | extern void owl_keys_default_invalid(int j); |
---|
556 | |
---|
557 | /* -------------------------------- list.c -------------------------------- */ |
---|
558 | extern int owl_list_create(owl_list *l); |
---|
559 | extern int owl_list_get_size(owl_list *l); |
---|
560 | extern void *owl_list_get_element(owl_list *l, int n); |
---|
561 | extern int owl_list_append_element(owl_list *l, void *element); |
---|
562 | extern int owl_list_prepend_element(owl_list *l, void *element); |
---|
563 | extern int owl_list_remove_element(owl_list *l, int n); |
---|
564 | extern int owl_list_replace_element(owl_list *l, int n, void *element); |
---|
565 | extern void owl_list_free_all(owl_list *l, void (*elefree)(void *)); |
---|
566 | extern void owl_list_free_simple(owl_list *l); |
---|
567 | |
---|
568 | /* -------------------------------- logging.c -------------------------------- */ |
---|
569 | extern void owl_log_outgoing(char *to, char *text); |
---|
570 | extern void owl_log_incoming(owl_message *m); |
---|
571 | |
---|
572 | /* -------------------------------- mainwin.c -------------------------------- */ |
---|
573 | extern void owl_mainwin_init(owl_mainwin *mw); |
---|
574 | extern void owl_mainwin_redisplay(owl_mainwin *mw); |
---|
575 | extern int owl_mainwin_is_curmsg_truncated(owl_mainwin *mw); |
---|
576 | extern int owl_mainwin_is_last_msg_truncated(owl_mainwin *mw); |
---|
577 | extern int owl_mainwin_get_last_msg(owl_mainwin *mw); |
---|
578 | |
---|
579 | /* -------------------------------- message.c -------------------------------- */ |
---|
580 | extern void owl_message_init(owl_message *m); |
---|
581 | extern void owl_message_set_attribute(owl_message *m, char *attrname, char *attrvalue); |
---|
582 | extern char *owl_message_get_attribute_value(owl_message *m, char *attrname); |
---|
583 | extern void owl_message_attributes_tofmtext(owl_message *m, owl_fmtext *fm); |
---|
584 | extern owl_fmtext *owl_message_get_fmtext(owl_message *m); |
---|
585 | extern void owl_message_set_class(owl_message *m, char *class); |
---|
586 | extern char *owl_message_get_class(owl_message *m); |
---|
587 | extern void owl_message_set_instance(owl_message *m, char *inst); |
---|
588 | extern char *owl_message_get_instance(owl_message *m); |
---|
589 | extern void owl_message_set_sender(owl_message *m, char *sender); |
---|
590 | extern char *owl_message_get_sender(owl_message *m); |
---|
591 | extern void owl_message_set_zsig(owl_message *m, char *zsig); |
---|
592 | extern char *owl_message_get_zsig(owl_message *m); |
---|
593 | extern void owl_message_set_recipient(owl_message *m, char *recip); |
---|
594 | extern char *owl_message_get_recipient(owl_message *m); |
---|
595 | extern void owl_message_set_realm(owl_message *m, char *realm); |
---|
596 | extern char *owl_message_get_realm(owl_message *m); |
---|
597 | extern void owl_message_set_body(owl_message *m, char *body); |
---|
598 | extern char *owl_message_get_body(owl_message *m); |
---|
599 | extern void owl_message_set_opcode(owl_message *m, char *opcode); |
---|
600 | extern char *owl_message_get_opcode(owl_message *m); |
---|
601 | extern void owl_message_set_isloginout(owl_message *m); |
---|
602 | extern int owl_message_is_loginout(owl_message *m); |
---|
603 | extern void owl_message_set_isprivate(owl_message *m); |
---|
604 | extern int owl_message_is_private(owl_message *m); |
---|
605 | extern char *owl_message_get_timestr(owl_message *m); |
---|
606 | extern void owl_message_set_type_admin(owl_message *m); |
---|
607 | extern void owl_message_set_type_zephyr(owl_message *m); |
---|
608 | extern void owl_message_set_type_aim(owl_message *m); |
---|
609 | extern int owl_message_is_type_admin(owl_message *m); |
---|
610 | extern int owl_message_is_type_zephyr(owl_message *m); |
---|
611 | extern int owl_message_is_type_aim(owl_message *m); |
---|
612 | extern int owl_message_is_type_generic(owl_message *m); |
---|
613 | extern char *owl_message_type_to_string(owl_message *m); |
---|
614 | extern char *owl_message_get_text(owl_message *m); |
---|
615 | extern void owl_message_set_direction_in(owl_message *m); |
---|
616 | extern void owl_message_set_direction_out(owl_message *m); |
---|
617 | extern void owl_message_set_direction_none(owl_message *m); |
---|
618 | extern int owl_message_is_direction_in(owl_message *m); |
---|
619 | extern int owl_message_is_direction_out(owl_message *m); |
---|
620 | extern int owl_message_is_direction_none(owl_message *m); |
---|
621 | extern int owl_message_get_numlines(owl_message *m); |
---|
622 | extern void owl_message_mark_delete(owl_message *m); |
---|
623 | extern void owl_message_unmark_delete(owl_message *m); |
---|
624 | extern char *owl_message_get_zwriteline(owl_message *m); |
---|
625 | extern void owl_message_set_zwriteline(owl_message *m, char *line); |
---|
626 | extern int owl_message_is_delete(owl_message *m); |
---|
627 | extern ZNotice_t *owl_message_get_notice(owl_message *m); |
---|
628 | extern char *owl_message_get_hostname(owl_message *m); |
---|
629 | extern void owl_message_curs_waddstr(owl_message *m, WINDOW *win, int aline, int bline, int acol, int bcol, int color); |
---|
630 | extern int owl_message_is_personal(owl_message *m); |
---|
631 | extern int owl_message_is_from_me(owl_message *m); |
---|
632 | extern int owl_message_is_mail(owl_message *m); |
---|
633 | extern int owl_message_is_ping(owl_message *m); |
---|
634 | extern int owl_message_is_burningears(owl_message *m); |
---|
635 | extern char *owl_message_get_cc(owl_message *m); |
---|
636 | extern int owl_message_get_id(owl_message *m); |
---|
637 | extern int owl_message_search(owl_message *m, char *string); |
---|
638 | extern void owl_message_create(owl_message *m, char *header, char *text); |
---|
639 | extern void owl_message_create_incoming_aim(owl_message *m, char *sender, char *recipient, char *text); |
---|
640 | extern void owl_message_create_outgoing_aim(owl_message *m, char *sender, char *recipient, char *text); |
---|
641 | extern void owl_message_create_aim_login(owl_message *m, int direction, char *screenname); |
---|
642 | extern void owl_message_create_admin(owl_message *m, char *header, char *text); |
---|
643 | extern void owl_message_create_from_znotice(owl_message *m, ZNotice_t *n); |
---|
644 | extern void owl_message_create_from_zwriteline(owl_message *m, char *line, char *body, char *zsig); |
---|
645 | extern void _owl_message_make_text_from_config(owl_message *m); |
---|
646 | extern void _owl_message_make_text_from_zwriteline_standard(owl_message *m); |
---|
647 | extern void _owl_message_make_text_from_zwriteline_simple(owl_message *m); |
---|
648 | extern void _owl_message_make_text_from_notice_standard(owl_message *m); |
---|
649 | extern void _owl_message_make_text_from_notice_simple(owl_message *m); |
---|
650 | extern void owl_message_pretty_zsig(owl_message *m, char *buff); |
---|
651 | extern void owl_message_free(owl_message *m); |
---|
652 | |
---|
653 | /* -------------------------------- messagelist.c -------------------------------- */ |
---|
654 | extern int owl_messagelist_create(owl_messagelist *ml); |
---|
655 | extern int owl_messagelist_get_size(owl_messagelist *ml); |
---|
656 | extern void *owl_messagelist_get_element(owl_messagelist *ml, int n); |
---|
657 | extern owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int id); |
---|
658 | extern int owl_messagelist_append_element(owl_messagelist *ml, void *element); |
---|
659 | extern int owl_messagelist_delete_element(owl_messagelist *ml, int n); |
---|
660 | extern int owl_messagelist_undelete_element(owl_messagelist *ml, int n); |
---|
661 | extern int owl_messagelist_expunge(owl_messagelist *ml); |
---|
662 | |
---|
663 | /* -------------------------------- owl.c -------------------------------- */ |
---|
664 | extern int main(int argc, char **argv, char **env); |
---|
665 | extern void sig_handler(int sig); |
---|
666 | extern void usage(); |
---|
667 | |
---|
668 | /* -------------------------------- pair.c -------------------------------- */ |
---|
669 | extern void owl_pair_create(owl_pair *p, void *key, void *value); |
---|
670 | extern void owl_pair_set_key(owl_pair *p, void *key); |
---|
671 | extern void owl_pair_set_value(owl_pair *p, void *value); |
---|
672 | extern void *owl_pair_get_key(owl_pair *p); |
---|
673 | extern void *owl_pair_get_value(owl_pair *p); |
---|
674 | |
---|
675 | /* -------------------------------- perlglue.c -------------------------------- */ |
---|
676 | |
---|
677 | /* -------------------------------- popwin.c -------------------------------- */ |
---|
678 | extern int owl_popwin_init(owl_popwin *pw); |
---|
679 | extern int owl_popwin_up(owl_popwin *pw); |
---|
680 | extern int owl_popwin_display_text(owl_popwin *pw, char *text); |
---|
681 | extern int owl_popwin_close(owl_popwin *pw); |
---|
682 | extern int owl_popwin_is_active(owl_popwin *pw); |
---|
683 | extern int owl_popwin_refresh(owl_popwin *pw); |
---|
684 | extern void owl_popwin_set_handler(owl_popwin *pw, void (*func)(int ch)); |
---|
685 | extern void owl_popwin_unset_handler(owl_popwin *pw); |
---|
686 | extern WINDOW *owl_popwin_get_curswin(owl_popwin *pw); |
---|
687 | extern int owl_popwin_get_lines(owl_popwin *pw); |
---|
688 | extern int owl_popwin_get_cols(owl_popwin *pw); |
---|
689 | extern int owl_popwin_needs_first_refresh(owl_popwin *pw); |
---|
690 | extern void owl_popwin_no_needs_first_refresh(owl_popwin *pw); |
---|
691 | |
---|
692 | /* -------------------------------- readconfig.c -------------------------------- */ |
---|
693 | extern int owl_readconfig(char *file); |
---|
694 | extern char *owl_config_execute(char *line); |
---|
695 | extern char *owl_config_getmsg(owl_message *m, int mode); |
---|
696 | |
---|
697 | /* -------------------------------- regex.c -------------------------------- */ |
---|
698 | extern void owl_regex_init(owl_regex *re); |
---|
699 | extern int owl_regex_create(owl_regex *re, char *string); |
---|
700 | extern int owl_regex_compare(owl_regex *re, char *string); |
---|
701 | extern int owl_regex_is_set(owl_regex *re); |
---|
702 | extern char *owl_regex_get_string(owl_regex *re); |
---|
703 | extern void owl_regex_copy(owl_regex *a, owl_regex *b); |
---|
704 | extern void owl_regex_free(owl_regex *re); |
---|
705 | |
---|
706 | /* -------------------------------- tester.c -------------------------------- */ |
---|
707 | extern void screeninit(); |
---|
708 | extern void test1(); |
---|
709 | extern void test2(char *in); |
---|
710 | extern void test3(); |
---|
711 | extern void colorinfo(); |
---|
712 | extern void test4(); |
---|
713 | extern void test_keypress(); |
---|
714 | extern int main(int argc, char **argv, char **env); |
---|
715 | |
---|
716 | /* -------------------------------- text.c -------------------------------- */ |
---|
717 | extern int owl_text_truncate_lines(char *out, char *in, int aline, int lines); |
---|
718 | extern void owl_text_truncate_cols(char *out, char *in, int acol, int bcol); |
---|
719 | extern void owl_text_indent(char *out, char *in, int n); |
---|
720 | extern int owl_text_num_lines(char *in); |
---|
721 | extern char *owl_text_htmlstrip(char *in); |
---|
722 | |
---|
723 | /* -------------------------------- timer.c -------------------------------- */ |
---|
724 | extern void owl_timer_create_countup(owl_timer *t); |
---|
725 | extern void owl_timer_create_countdown(owl_timer *t, int start); |
---|
726 | extern void owl_timer_reset(owl_timer *t); |
---|
727 | extern void owl_timer_reset_newstart(owl_timer *t, int start); |
---|
728 | extern int owl_timer_get_time(owl_timer *t); |
---|
729 | extern int owl_timer_is_expired(owl_timer *t); |
---|
730 | |
---|
731 | /* -------------------------------- util.c -------------------------------- */ |
---|
732 | extern void sepbar(char *in); |
---|
733 | extern void pophandler_quit(int ch); |
---|
734 | extern char **atokenize(char *buffer, char *sep, int *i); |
---|
735 | extern char *skiptokens(char *buff, int n); |
---|
736 | extern void atokenize_free(char **tok, int nels); |
---|
737 | extern void owl_parsefree(char **argv, int argc); |
---|
738 | extern char **owl_parseline(char *line, int *argc); |
---|
739 | extern int owl_util_find_trans(char *in, int len); |
---|
740 | extern void downstr(char *foo); |
---|
741 | extern char *stristr(char *a, char *b); |
---|
742 | extern char *owl_util_uniq(char *A, char *B, char *prohibit); |
---|
743 | extern int only_whitespace(char *s); |
---|
744 | extern void *owl_malloc(size_t size); |
---|
745 | extern void owl_free(void *ptr); |
---|
746 | extern char *owl_strdup(const char *s1); |
---|
747 | extern void *owl_realloc(void *ptr, size_t size); |
---|
748 | extern char *owl_sprintf(const char *fmt, ...); |
---|
749 | extern char *short_zuser(char *in); |
---|
750 | extern char *long_zuser(char *in); |
---|
751 | extern char *owl_util_smartstripped_user(char *in); |
---|
752 | extern char *owl_getquoting(char *line); |
---|
753 | extern char *owl_util_substitute(char *in, char *from, char *to); |
---|
754 | extern void owl_util_tr(char *buff, char a, char b); |
---|
755 | extern int owl_util_string_to_color(char *color); |
---|
756 | extern char *owl_util_color_to_string(int color); |
---|
757 | extern char *owl_util_get_default_tty(); |
---|
758 | extern void owl_hack_animate(); |
---|
759 | extern char *owl_util_stripnewlines(char *in); |
---|
760 | extern void owl_util_file_deleteline(char *filename, char *line, int backup); |
---|
761 | extern int owl_util_regtest(void); |
---|
762 | |
---|
763 | /* -------------------------------- variable.c -------------------------------- */ |
---|
764 | extern int owl_variable_int_validate_gt0(owl_variable *v, void *newval); |
---|
765 | extern int owl_variable_int_validate_positive(owl_variable *v, void *newval); |
---|
766 | extern int owl_variable_typewinsize_set(owl_variable *v, void *newval); |
---|
767 | extern int owl_variable_debug_set(owl_variable *v, void *newval); |
---|
768 | extern int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval); |
---|
769 | extern int owl_variable_tty_set(owl_variable *v, void *newval); |
---|
770 | extern int owl_variable_dict_setup(owl_vardict *vd); |
---|
771 | extern void owl_variable_dict_free(owl_vardict *d); |
---|
772 | extern void owl_variable_dict_get_names(owl_vardict *d, owl_list *l); |
---|
773 | extern void owl_variable_dict_namelist_free(owl_list *l); |
---|
774 | extern void owl_variable_free(owl_variable *v); |
---|
775 | extern char *owl_variable_get_description(owl_variable *v); |
---|
776 | extern char *owl_variable_get_summary(owl_variable *v); |
---|
777 | extern char *owl_variable_get_validsettings(owl_variable *v); |
---|
778 | extern int owl_variable_set_fromstring(owl_vardict *d, char *name, char *value, int msg, int requirebool); |
---|
779 | extern int owl_variable_set_string(owl_vardict *d, char *name, char *newval); |
---|
780 | extern int owl_variable_set_int(owl_vardict *d, char *name, int newval); |
---|
781 | extern int owl_variable_set_bool_on(owl_vardict *d, char *name); |
---|
782 | extern int owl_variable_set_bool_off(owl_vardict *d, char *name); |
---|
783 | extern int owl_variable_get_tostring(owl_vardict *d, char *name, char *buf, int bufsize); |
---|
784 | extern int owl_variable_get_default_tostring(owl_vardict *d, char *name, char *buf, int bufsize); |
---|
785 | extern void *owl_variable_get(owl_vardict *d, char *name, int require_type); |
---|
786 | extern char *owl_variable_get_string(owl_vardict *d, char *name); |
---|
787 | extern void *owl_variable_get_other(owl_vardict *d, char *name); |
---|
788 | extern int owl_variable_get_int(owl_vardict *d, char *name); |
---|
789 | extern int owl_variable_get_bool(owl_vardict *d, char *name); |
---|
790 | extern void owl_variable_describe(owl_vardict *d, char *name, owl_fmtext *fm); |
---|
791 | extern void owl_variable_get_help(owl_vardict *d, char *name, owl_fmtext *fm); |
---|
792 | extern void *owl_variable_get_default(owl_variable *v); |
---|
793 | extern void owl_variable_free_default(owl_variable *v); |
---|
794 | extern int owl_variable_bool_validate_default(owl_variable *v, void *newval); |
---|
795 | extern int owl_variable_bool_set_default(owl_variable *v, void *newval); |
---|
796 | extern int owl_variable_bool_set_fromstring_default(owl_variable *v, char *newval); |
---|
797 | extern int owl_variable_bool_get_tostring_default(owl_variable *v, char* buf, int bufsize, void *val); |
---|
798 | extern int owl_variable_int_validate_default(owl_variable *v, void *newval); |
---|
799 | extern int owl_variable_int_set_default(owl_variable *v, void *newval); |
---|
800 | extern int owl_variable_int_set_fromstring_default(owl_variable *v, char *newval); |
---|
801 | extern int owl_variable_int_get_tostring_default(owl_variable *v, char* buf, int bufsize, void *val); |
---|
802 | extern int owl_variable_enum_validate(owl_variable *v, void *newval); |
---|
803 | extern int owl_variable_enum_set_fromstring(owl_variable *v, char *newval); |
---|
804 | extern int owl_variable_enum_get_tostring(owl_variable *v, char* buf, int bufsize, void *val); |
---|
805 | extern int owl_variable_string_validate_default(struct _owl_variable *v, void *newval); |
---|
806 | extern int owl_variable_string_set_default(owl_variable *v, void *newval); |
---|
807 | extern int owl_variable_string_set_fromstring_default(owl_variable *v, char *newval); |
---|
808 | extern int owl_variable_string_get_tostring_default(owl_variable *v, char* buf, int bufsize, void *val); |
---|
809 | extern int owl_variable_regtest(void); |
---|
810 | |
---|
811 | /* -------------------------------- varstubs.c -------------------------------- */ |
---|
812 | extern void owl_global_set_personalbell_on(owl_global *g); |
---|
813 | extern void owl_global_set_personalbell_off(owl_global *g); |
---|
814 | extern int owl_global_is_personalbell(owl_global *g); |
---|
815 | extern void owl_global_set_bell_on(owl_global *g); |
---|
816 | extern void owl_global_set_bell_off(owl_global *g); |
---|
817 | extern int owl_global_is_bell(owl_global *g); |
---|
818 | extern void owl_global_set_debug_on(owl_global *g); |
---|
819 | extern void owl_global_set_debug_off(owl_global *g); |
---|
820 | extern int owl_global_is_debug(owl_global *g); |
---|
821 | extern void owl_global_set_startuplogin_on(owl_global *g); |
---|
822 | extern void owl_global_set_startuplogin_off(owl_global *g); |
---|
823 | extern int owl_global_is_startuplogin(owl_global *g); |
---|
824 | extern void owl_global_set_shutdownlogout_on(owl_global *g); |
---|
825 | extern void owl_global_set_shutdownlogout_off(owl_global *g); |
---|
826 | extern int owl_global_is_shutdownlogout(owl_global *g); |
---|
827 | extern void owl_global_set_rxping_on(owl_global *g); |
---|
828 | extern void owl_global_set_rxping_off(owl_global *g); |
---|
829 | extern int owl_global_is_rxping(owl_global *g); |
---|
830 | extern void owl_global_set_txping_on(owl_global *g); |
---|
831 | extern void owl_global_set_txping_off(owl_global *g); |
---|
832 | extern int owl_global_is_txping(owl_global *g); |
---|
833 | extern void owl_global_set_smartstrip_on(owl_global *g); |
---|
834 | extern void owl_global_set_smartstrip_off(owl_global *g); |
---|
835 | extern int owl_global_is_smartstrip(owl_global *g); |
---|
836 | extern void owl_global_set_newlinestrip_on(owl_global *g); |
---|
837 | extern void owl_global_set_newlinestrip_off(owl_global *g); |
---|
838 | extern int owl_global_is_newlinestrip(owl_global *g); |
---|
839 | extern void owl_global_set_displayoutgoing_on(owl_global *g); |
---|
840 | extern void owl_global_set_displayoutgoing_off(owl_global *g); |
---|
841 | extern int owl_global_is_displayoutgoing(owl_global *g); |
---|
842 | extern void owl_global_set_loginsubs_on(owl_global *g); |
---|
843 | extern void owl_global_set_loginsubs_off(owl_global *g); |
---|
844 | extern int owl_global_is_loginsubs(owl_global *g); |
---|
845 | extern void owl_global_set_logging_on(owl_global *g); |
---|
846 | extern void owl_global_set_logging_off(owl_global *g); |
---|
847 | extern int owl_global_is_logging(owl_global *g); |
---|
848 | extern void owl_global_set_classlogging_on(owl_global *g); |
---|
849 | extern void owl_global_set_classlogging_off(owl_global *g); |
---|
850 | extern int owl_global_is_classlogging(owl_global *g); |
---|
851 | extern void owl_global_set_colorztext_on(owl_global *g); |
---|
852 | extern void owl_global_set_colorztext_off(owl_global *g); |
---|
853 | extern int owl_global_is_colorztext(owl_global *g); |
---|
854 | extern void owl_global_set_zcrypt_on(owl_global *g); |
---|
855 | extern void owl_global_set_zcrypt_off(owl_global *g); |
---|
856 | extern int owl_global_is_zcrypt(owl_global *g); |
---|
857 | extern void owl_global_set_lockout_ctrld(owl_global *g, int n); |
---|
858 | extern int owl_global_get_lockout_ctrld(owl_global *g); |
---|
859 | extern void owl_global_set_burningears_on(owl_global *g); |
---|
860 | extern void owl_global_set_burningears_off(owl_global *g); |
---|
861 | extern int owl_global_is_burningears(owl_global *g); |
---|
862 | extern void owl_global_set_summarymode_on(owl_global *g); |
---|
863 | extern void owl_global_set_summarymode_off(owl_global *g); |
---|
864 | extern int owl_global_is_summarymode(owl_global *g); |
---|
865 | extern void owl_global_set_logpath(owl_global *g, char *text); |
---|
866 | extern char *owl_global_get_logpath(owl_global *g); |
---|
867 | extern void owl_global_set_classlogpath(owl_global *g, char *text); |
---|
868 | extern char *owl_global_get_classlogpath(owl_global *g); |
---|
869 | extern void owl_global_set_debug_file(owl_global *g, char *text); |
---|
870 | extern char *owl_global_get_debug_file(owl_global *g); |
---|
871 | extern void owl_global_set_zsigproc(owl_global *g, char *text); |
---|
872 | extern char *owl_global_get_zsigproc(owl_global *g); |
---|
873 | extern void owl_global_set_newmsgproc(owl_global *g, char *text); |
---|
874 | extern char *owl_global_get_newmsgproc(owl_global *g); |
---|
875 | extern void owl_global_set_zsig(owl_global *g, char *text); |
---|
876 | extern char *owl_global_get_zsig(owl_global *g); |
---|
877 | extern void owl_global_set_appendtosepbar(owl_global *g, char *text); |
---|
878 | extern char *owl_global_get_appendtosepbar(owl_global *g); |
---|
879 | extern void owl_global_set_zaway_on(owl_global *g); |
---|
880 | extern void owl_global_set_zaway_off(owl_global *g); |
---|
881 | extern int owl_global_is_zaway(owl_global *g); |
---|
882 | extern void owl_global_set_zaway_msg(owl_global *g, char *text); |
---|
883 | extern char *owl_global_get_zaway_msg(owl_global *g); |
---|
884 | extern void owl_global_set_zaway_msg_default(owl_global *g, char *text); |
---|
885 | extern char *owl_global_get_zaway_msg_default(owl_global *g); |
---|
886 | extern void owl_global_set_view_home(owl_global *g, char *text); |
---|
887 | extern char *owl_global_get_view_home(owl_global *g); |
---|
888 | extern void owl_global_set_alert_filter(owl_global *g, char *text); |
---|
889 | extern char *owl_global_get_alert_filter(owl_global *g); |
---|
890 | extern void owl_global_set_alert_action(owl_global *g, char *text); |
---|
891 | extern char *owl_global_get_alert_action(owl_global *g); |
---|
892 | extern void owl_global_set_tty(owl_global *g, char *text); |
---|
893 | extern char *owl_global_get_tty(owl_global *g); |
---|
894 | extern void owl_global_set_edit_maxfillcols(owl_global *g, int n); |
---|
895 | extern int owl_global_get_edit_maxfillcols(owl_global *g); |
---|
896 | extern void owl_global_set_edit_maxwrapcols(owl_global *g, int n); |
---|
897 | extern int owl_global_get_edit_maxwrapcols(owl_global *g); |
---|
898 | extern void owl_global_set_aim_ignorelogin_timer(owl_global *g, int n); |
---|
899 | extern int owl_global_get_aim_ignorelogin_timer(owl_global *g); |
---|
900 | extern void owl_global_set_typwin_lines(owl_global *g, int n); |
---|
901 | extern int owl_global_get_typwin_lines(owl_global *g); |
---|
902 | extern void owl_global_set_scrollmode(owl_global *g, int n); |
---|
903 | extern int owl_global_get_scrollmode(owl_global *g); |
---|
904 | extern void owl_global_set_webbrowser(owl_global *g, int n); |
---|
905 | extern int owl_global_get_webbrowser(owl_global *g); |
---|
906 | extern void owl_global_set__followlast_on(owl_global *g); |
---|
907 | extern void owl_global_set__followlast_off(owl_global *g); |
---|
908 | extern int owl_global_is__followlast(owl_global *g); |
---|
909 | |
---|
910 | /* -------------------------------- view.c -------------------------------- */ |
---|
911 | extern void owl_view_create(owl_view *v, owl_filter *f); |
---|
912 | extern void owl_view_consider_message(owl_view *v, owl_message *m); |
---|
913 | extern void owl_view_recalculate(owl_view *v); |
---|
914 | extern owl_message *owl_view_get_element(owl_view *v, int index); |
---|
915 | extern void owl_view_delete_element(owl_view *v, int index); |
---|
916 | extern void owl_view_undelete_element(owl_view *v, int index); |
---|
917 | extern int owl_view_get_size(owl_view *v); |
---|
918 | extern int owl_view_get_nearest_to_msgid(owl_view *v, int targetid); |
---|
919 | extern int owl_view_get_nearest_to_saved(owl_view *v); |
---|
920 | extern void owl_view_save_curmsgid(owl_view *v, int curid); |
---|
921 | extern char *owl_view_get_filtname(owl_view *v); |
---|
922 | extern void owl_view_free(owl_view *v); |
---|
923 | |
---|
924 | /* -------------------------------- viewwin.c -------------------------------- */ |
---|
925 | extern void owl_viewwin_init_text(owl_viewwin *v, WINDOW *win, int winlines, int wincols, char *text); |
---|
926 | extern void owl_viewwin_init_fmtext(owl_viewwin *v, WINDOW *win, int winlines, int wincols, owl_fmtext *fmtext); |
---|
927 | extern void owl_viewwin_set_curswin(owl_viewwin *v, WINDOW *w, int winlines, int wincols); |
---|
928 | extern void owl_viewwin_redisplay(owl_viewwin *v, int update); |
---|
929 | extern void owl_viewwin_pagedown(owl_viewwin *v); |
---|
930 | extern void owl_viewwin_linedown(owl_viewwin *v); |
---|
931 | extern void owl_viewwin_pageup(owl_viewwin *v); |
---|
932 | extern void owl_viewwin_lineup(owl_viewwin *v); |
---|
933 | extern void owl_viewwin_right(owl_viewwin *v, int n); |
---|
934 | extern void owl_viewwin_left(owl_viewwin *v, int n); |
---|
935 | extern void owl_viewwin_top(owl_viewwin *v); |
---|
936 | extern void owl_viewwin_bottom(owl_viewwin *v); |
---|
937 | extern void owl_viewwin_free(owl_viewwin *v); |
---|
938 | |
---|
939 | /* -------------------------------- zcrypt.c -------------------------------- */ |
---|
940 | extern int zcrypt(int argc, char *argv[]); |
---|
941 | extern int zcrypt_decrypt(char *out, char *in, char *class, char *instance); |
---|
942 | extern int zcrypt_encrypt(char *out, char *in, char *class, char *instance); |
---|
943 | extern char *BuildArgString(char **argv, int start, int end); |
---|
944 | extern char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance); |
---|
945 | extern void CloseZephyrPipe(FILE *pipe); |
---|
946 | extern void block_to_ascii(char *output, FILE *outfile); |
---|
947 | extern int read_ascii_nybble(); |
---|
948 | extern int read_ascii_byte(); |
---|
949 | extern int read_ascii_block(char *input); |
---|
950 | extern int do_decrypt(char *keystring); |
---|
951 | |
---|
952 | /* -------------------------------- zephyr.c -------------------------------- */ |
---|
953 | extern int owl_zephyr_loadsubs(char *filename); |
---|
954 | extern int owl_zephyr_loadloginsubs(char *filename); |
---|
955 | extern void unsuball(); |
---|
956 | extern int owl_zephyr_sub(char *class, char *inst, char *recip); |
---|
957 | extern int owl_zephyr_unsub(char *class, char *inst, char *recip); |
---|
958 | extern char *owl_zephyr_get_field(ZNotice_t *n, int j, int *k); |
---|
959 | extern int owl_zephyr_get_num_fields(ZNotice_t *n); |
---|
960 | extern char *owl_zephyr_get_message(ZNotice_t *n, int *k); |
---|
961 | extern char *owl_zephyr_get_zsig(ZNotice_t *n, int *k); |
---|
962 | extern int send_zephyr(char *opcode, char *zsig, char *class, char *instance, char *recipient, char *message); |
---|
963 | extern Code_t send_zephyr_helper(ZNotice_t *notice, char *buf, int len, int wait); |
---|
964 | extern void send_ping(char *to); |
---|
965 | extern void owl_zephyr_handle_ack(ZNotice_t *retnotice); |
---|
966 | extern int owl_zephyr_notice_is_ack(ZNotice_t *n); |
---|
967 | extern void owl_zephyr_zaway(owl_message *m); |
---|
968 | extern void owl_zephyr_hackaway_cr(ZNotice_t *n); |
---|
969 | extern void owl_zephyr_zlocate(char *user, char *out, int auth); |
---|
970 | extern void owl_zephyr_addsub(char *filename, char *class, char *inst, char *recip); |
---|
971 | extern void owl_zephyr_delsub(char *filename, char *class, char *inst, char *recip); |
---|
972 | extern char *owl_zephyr_makesubline(char *class, char *inst, char *recip); |
---|
973 | extern void owl_zephyr_zlog_in(void); |
---|
974 | extern void owl_zephyr_zlog_out(void); |
---|
975 | extern void owl_zephyr_addbuddy(char *name); |
---|
976 | extern void owl_zephyr_delbuddy(char *name); |
---|
977 | |
---|
978 | /* -------------------------------- zwrite.c -------------------------------- */ |
---|
979 | extern int owl_zwrite_create_and_send_from_line(char *cmd, char *msg); |
---|
980 | extern int owl_zwrite_create_from_line(owl_zwrite *z, char *line); |
---|
981 | extern void owl_zwrite_send_ping(owl_zwrite *z); |
---|
982 | extern void owl_zwrite_send_message(owl_zwrite *z, char *msg); |
---|
983 | extern char *owl_zwrite_get_class(owl_zwrite *z); |
---|
984 | extern char *owl_zwrite_get_instance(owl_zwrite *z); |
---|
985 | extern char *owl_zwrite_get_opcode(owl_zwrite *z); |
---|
986 | extern char *owl_zwrite_get_realm(owl_zwrite *z); |
---|
987 | extern char *owl_zwrite_get_zsig(owl_zwrite *z); |
---|
988 | extern void owl_zwrite_get_recipstr(owl_zwrite *z, char *buff); |
---|
989 | extern int owl_zwrite_get_numrecips(owl_zwrite *z); |
---|
990 | extern char *owl_zwrite_get_recip_n(owl_zwrite *z, int n); |
---|
991 | extern int owl_zwrite_is_personal(owl_zwrite *z); |
---|
992 | extern void owl_zwrite_free(owl_zwrite *z); |
---|
993 | |
---|