chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / prototypes.h
1 /* ansi.c */
2 void ansi_move (ANSI * a, CRT_Pos p);
3 void ansi_showhide_cursor (ANSI * a, int hide);
4 void ansi_force_attr_normal (ANSI * a);
5 void ansi_set_color (ANSI * a, int color);
6 void ansi_set_attr (ANSI * a, int attr);
7 void ansi_render (ANSI * a, CRT_CA ca);
8 void ansi_cls (ANSI * a);
9 void ansi_draw_line (ANSI * a, CRT_CA * cap, int y);
10 void ansi_resize_check (ANSI * a);
11 void ansi_history (ANSI * a, History * h);
12 void ansi_draw (ANSI * a, CRT * c);
13 void ansi_reset (ANSI * a, CRT * c);
14 void ansi_terminal_reset (ANSI * a);
15 void ansi_flush_escape (ANSI * a, Context * c);
16 void ansi_parse_deckey (ANSI * a, Context * c);
17 void ansi_parse_ansikey (ANSI * a, Context * c);
18 void ansi_parse_escape (ANSI * a, Context * c);
19 void ansi_check_escape (ANSI * a, Context * c);
20 void ansi_parse_char (ANSI * a, Context * c, int ch);
21 void ansi_parse (ANSI * a, Context * c, char *buf, int len);
22 int ansi_dispatch (ANSI * a, Context * c);
23 /* crt.c */
24 void crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea);
25 void crt_cls (CRT * c);
26 void crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea);
27 void crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea);
28 void crt_reset (CRT * c);
29 void crt_insert (CRT * c, CRT_CA ca);
30 /* html.c */
31 void html_entity (FILE * f, int c);
32 void html_render (FILE * f, CRT_CA c);
33 void html_draw (FILE * f, CRT * c);
34 /* libsympathy.c */
35 void testy (void);
36 void ring_test (void);
37 /* render.c */
38 /* version.c */
39 /* vt102.c */
40 void vt102_log_line (Context * c, int line);
41 void vt102_history (Context * c, CRT_Pos t, CRT_Pos b);
42 void vt102_clip_cursor (VT102 * v, CRT_Pos tl, CRT_Pos br);
43 void vt102_cursor_normalize (VT102 * v);
44 void vt102_cursor_carriage_return (VT102 * v);
45 void vt102_cursor_advance_line (Context * c);
46 void vt102_cursor_advance (Context * c);
47 void vt102_do_pending_wrap (Context * c);
48 void vt102_cursor_retard (VT102 * v);
49 void vt102_reset_tabs (VT102 * v);
50 void vt102_cursor_advance_tab (VT102 * v);
51 int vt102_cursor_home (VT102 * v);
52 int vt102_cursor_absolute (VT102 * v, int x, int y);
53 int vt102_cursor_relative (VT102 * v, int x, int y);
54 void vt102_delete_from_line (VT102 * v, CRT_Pos p);
55 void vt102_insert_into_line (VT102 * v, CRT_Pos p);
56 void vt102_change_mode (VT102 * v, int private, char *ns, int set);
57 void vt102_parse_mode_string (VT102 * v, char *buf, int len);
58 void vt102_change_attr (VT102 * v, char *na);
59 void vt102_parse_attr_string (VT102 * v, char *buf, int len);
60 void vt102_save_state (VT102 * v);
61 void vt102_restore_state (VT102 * v);
62 void vt102_scs (Context * c, int g, int s);
63 void vt102_parse_esc (Context * c, int ch);
64 void vt102_parse_csi (Context * c, char *buf, int len);
65 void vt102_status_line (VT102 * v, char *str);
66 void vt102_parse_char (Context * c, int ch);
67 int vt102_parse (Context * c, char *buf, int len);
68 void vt102_parser_reset (VT102_parser * p);
69 void vt102_send (Context * c, uint8_t key);
70 void vt102_reset (VT102 * v);
71 int vt102_dispatch (Context * c);
72 int vt102_dispatch_one (Context * c);
73 VT102 *vt102_new (void);
74 void vt102_free (VT102 * v);
75 /* tty.c */
76 /* history.c */
77 History *history_new (int n);
78 void history_free (History * h);
79 void history_add (History * h, CRT_CA * c);
80 /* ring.c */
81 int ring_read (Ring * r, void *b, int n);
82 int ring_write (Ring * r, void *b, int n);
83 int ring_space (Ring * r);
84 int ring_bytes (Ring * r);
85 Ring *ring_new (int n);
86 /* ptty.c */
87 TTY *ptty_open (char *path, char *argv[]);
88 /* terminal.c */
89 int terminal_winches;
90 void terminal_atexit (void);
91 void terminal_getsize (TTY * _t);
92 void terminal_dispatch (void);
93 void terminal_register_handlers (void);
94 TTY *terminal_open (int rfd, int wfd);
95 /* util.c */
96 int wrap_read (int fd, void *buf, int len);
97 int wrap_write (int fd, void *buf, int len);
98 void set_nonblocking (int fd);
99 void set_blocking (int fd);
100 void raw_termios (struct termios *termios);
101 void default_termios (struct termios *termios);
102 /* log.c */
103 Log *file_log_new (char *fn);
104 /* ipc.c */
105 Socket *socket_listen (char *path);
106 Socket *socket_accept (Socket * l);
107 Socket *socket_connect (char *path);
108 void socket_postselect (Socket * s, fd_set * rfds, fd_set * wfds);
109 void socket_preselect (Socket * s, fd_set * rfds, fd_set * wfds);
110 /* slide.c */
111 void slide_free (Slide * s);
112 void slide_consume (Slide * s, int n);
113 void slide_added (Slide * s, int n);
114 Slide *slide_new (int n);
115 void slide_expand (Slide * s, int n);