chiark / gitweb /
serialmgr: Look for things in /usr, not /usr/local
[sympathy.git] / src / history.h
1 /* 
2  * history.h:
3  *
4  * Copyright (c) 2008 James McKenzie <sympathy@madingley.org>,
5  * All rights reserved.
6  *
7  */
8
9 /* 
10  * $Id: history.h,v 1.7 2008/03/10 11:49:33 james Exp $
11  */
12
13 /* 
14  * $Log: history.h,v $
15  * Revision 1.7  2008/03/10 11:49:33  james
16  * *** empty log message ***
17  *
18  * Revision 1.6  2008/03/07 12:37:04  james
19  * *** empty log message ***
20  *
21  * Revision 1.5  2008/03/03 06:04:42  james
22  * *** empty log message ***
23  *
24  * Revision 1.4  2008/03/02 10:37:56  james
25  * *** empty log message ***
26  *
27  * Revision 1.3  2008/02/13 16:57:29  james
28  * *** empty log message ***
29  *
30  * Revision 1.2  2008/02/12 22:36:46  james
31  * *** empty log message ***
32  *
33  * Revision 1.1  2008/02/08 15:06:42  james
34  * *** empty log message ***
35  *
36  */
37
38 #ifndef __HISTORY_H__
39 #define __HISTORY_H__
40
41 typedef struct {
42   int valid;
43   time_t t;
44   CRT_CA line[CRT_COLS];
45 } History_ent;
46
47 typedef struct {
48   History_ent *lines;
49   int nlines;
50   int wptr;
51 } History;
52
53 #define HISTORY_INC(h,a) do { (a)++; if ((a)==((h)->nlines)) { (a)=0; }; } while (0)
54
55 #endif /* __HISTORY_H__ */