4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.1 2008/02/14 02:46:44 james
14 * *** empty log message ***
16 * Revision 1.1 2008/02/14 01:55:57 james
17 * *** empty log message ***
38 keydis_close (KeyDis * t)
45 keydis_ipc_key (KeyDis * _t, int key)
47 KeyDis_IPC *t = (KeyDis_IPC *) _t;
49 return ipc_msg_send_key (t->s, key);
53 keydis_vt102_key (KeyDis * _t, int key)
55 KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
57 vt102_send (t->c, key);
63 keydis_vt102_new (Context * c)
65 KeyDis_VT102 *t = malloc (sizeof (KeyDis_VT102));
66 t->key = keydis_vt102_key;
67 t->close = keydis_close;
74 keydis_ipc_new (Socket * s)
76 KeyDis_IPC *t = malloc (sizeof (KeyDis_IPC));
77 t->key = keydis_ipc_key;
78 t->close = keydis_close;