chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / keydis.h
1 /*
2  * keydis.h:
3  *
4  * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
5  * All rights reserved.
6  *
7  */
8
9 /*
10  * $Id$
11  */
12
13 /*
14  * $Log$
15  * Revision 1.4  2008/02/22 17:07:00  james
16  * *** empty log message ***
17  *
18  * Revision 1.3  2008/02/15 23:52:12  james
19  * *** empty log message ***
20  *
21  * Revision 1.2  2008/02/15 03:32:07  james
22  * *** empty log message ***
23  *
24  * Revision 1.1  2008/02/14 02:46:44  james
25  * *** empty log message ***
26  *
27  * Revision 1.1  2008/02/14 01:55:57  james
28  * *** empty log message ***
29  *
30  */
31
32 #ifndef __KEYDIS_H__
33 #define __KEYDIS_H__
34
35
36 struct Context_struct;
37
38 #define KEYDIS_SIGNATURE \
39         void (*close)(struct KeyDis_struct *); \
40         int (*key)(struct KeyDis_struct *,struct Context_struct *,int key); \
41         int (*set_baud)(struct KeyDis_struct *,struct Context_struct *,int rate); \
42         int (*send_break)(struct KeyDis_struct *,struct Context_struct *); \
43         int (*set_flow)(struct KeyDis_struct *,struct Context_struct *,int flow); \
44         int (*set_ansi)(struct KeyDis_struct *,struct Context_struct *,int ansi); \
45         int (*hangup)(struct KeyDis_struct *,struct Context_struct *)
46
47         
48
49 typedef struct KeyDis_struct
50 {
51   KEYDIS_SIGNATURE;
52 } KeyDis;
53
54
55 #endif /* __KEYDIS_H__ */