chiark / gitweb /
serialmgrd: Support recent versions of perl
[sympathy.git] / src / keydis.h
1 /* 
2  * keydis.h:
3  *
4  * Copyright (c) 2008 James McKenzie <sympathy@madingley.org>,
5  * All rights reserved.
6  *
7  */
8
9 /* 
10  * $Id: keydis.h,v 1.10 2008/03/10 11:49:33 james Exp $
11  */
12
13 /* 
14  * $Log: keydis.h,v $
15  * Revision 1.10  2008/03/10 11:49:33  james
16  * *** empty log message ***
17  *
18  * Revision 1.9  2008/03/07 12:37:04  james
19  * *** empty log message ***
20  *
21  * Revision 1.8  2008/03/03 06:04:42  james
22  * *** empty log message ***
23  *
24  * Revision 1.7  2008/03/02 10:37:56  james
25  * *** empty log message ***
26  *
27  * Revision 1.6  2008/02/28 11:27:48  james
28  * *** empty log message ***
29  *
30  * Revision 1.5  2008/02/23 11:48:37  james
31  * *** empty log message ***
32  *
33  * Revision 1.4  2008/02/22 17:07:00  james
34  * *** empty log message ***
35  *
36  * Revision 1.3  2008/02/15 23:52:12  james
37  * *** empty log message ***
38  *
39  * Revision 1.2  2008/02/15 03:32:07  james
40  * *** empty log message ***
41  *
42  * Revision 1.1  2008/02/14 02:46:44  james
43  * *** empty log message ***
44  *
45  * Revision 1.1  2008/02/14 01:55:57  james
46  * *** empty log message ***
47  *
48  */
49
50 #ifndef __KEYDIS_H__
51 #define __KEYDIS_H__
52
53
54 struct Context_struct;
55
56 #define KEYDIS_SIGNATURE \
57         void (*close)(struct KeyDis_struct *); \
58         int (*key)(struct KeyDis_struct *,struct Context_struct *,int key); \
59         int (*set_baud)(struct KeyDis_struct *,struct Context_struct *,int rate); \
60         int (*send_break)(struct KeyDis_struct *,struct Context_struct *); \
61         int (*set_flow)(struct KeyDis_struct *,struct Context_struct *,int flow); \
62         int (*set_ansi)(struct KeyDis_struct *,struct Context_struct *,int ansi); \
63         int (*hangup)(struct KeyDis_struct *,struct Context_struct *); \
64         int (*reset)(struct KeyDis_struct *,struct Context_struct *); \
65         int (*set_size)(struct KeyDis_struct *,struct Context_struct *,int width, int height)
66
67
68
69 typedef struct KeyDis_struct {
70   KEYDIS_SIGNATURE;
71 } KeyDis;
72
73
74 #endif /* __KEYDIS_H__ */