chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / prototypes.h
index 4468fe8e93fc6b32b96d64b5a1aa0752e53f2e06..17027e123f5e72435ee3c80f7190771be910816f 100644 (file)
@@ -1,7 +1,4 @@
 /* ansi.c */
-int ansi_read(ANSI *a, void *buf, int n);
-void ansi_write(ANSI *a, char *buf, int n);
-void ansi_getsize(ANSI *a);
 void ansi_move(ANSI *a, CRT_Pos p);
 void ansi_showhide_cursor(ANSI *a, int hide);
 void ansi_force_attr_normal(ANSI *a);
@@ -14,14 +11,14 @@ void ansi_spot_scroll_up(ANSI *a, CRT *c);
 void ansi_spot_scroll(ANSI *a, CRT *c);
 void ansi_draw(ANSI *a, CRT *c);
 void ansi_reset(ANSI *a);
-void ansi_flush_escape(ANSI *a, VT102 *v, TTY *t);
-void ansi_parse_deckey(ANSI *a, VT102 *v, TTY *t);
-void ansi_parse_ansikey(ANSI *a, VT102 *v, TTY *t);
-void ansi_parse_escape(ANSI *a, VT102 *v, TTY *t);
-void ansi_check_escape(ANSI *a, VT102 *v, TTY *t);
-void ansi_parse_char(ANSI *a, int c, VT102 *v, TTY *t);
-void ansi_parse(ANSI *a, char *buf, int len, VT102 *v, TTY *t);
-int ansi_dispatch(ANSI *a, VT102 *v, TTY *t);
+void ansi_flush_escape(ANSI *a, Context *c);
+void ansi_parse_deckey(ANSI *a, Context *c);
+void ansi_parse_ansikey(ANSI *a, Context *c);
+void ansi_parse_escape(ANSI *a, Context *c);
+void ansi_check_escape(ANSI *a, Context *c);
+void ansi_parse_char(ANSI *a, Context *c, int ch);
+void ansi_parse(ANSI *a, Context *c, char *buf, int len);
+int ansi_dispatch(ANSI *a, Context *c);
 /* crt.c */
 void crt_erase(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
 void crt_cls(CRT *c);
@@ -74,7 +71,13 @@ int vt102_dispatch_one(VT102 *v, TTY *tty);
 VT102 *vt102_new(void);
 void vt102_free(VT102 *v);
 /* tty.c */
-TTY *tty_new_test(void);
-int tty_read(TTY *t, void *buf, int len);
-int tty_write(TTY *t, void *buf, int len);
-void tty_free(TTY *t);
+/* history.c */
+History *history_new(int n);
+void history_free(History *h);
+void history_add(History *h, CRT_CA *c);
+/* ring.c */
+int ring_read(Ring *r, void *b, int n);
+int ring_write(Ring *r, void *b, int n);
+Ring *ring_new(int n);
+/* ptty.c */
+TTY *ptty_open(char *path, char *argv[]);