source: owl_prototypes.h @ 651560f

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