Mercurial > hg
comparison mcabber/src/hbuf.h @ 71:1e9d4949bcfd
[/trunk] Changeset 85 by mikael
* New history buffer implementation
author | mikael |
---|---|
date | Sat, 16 Apr 2005 10:14:24 +0000 |
parents | |
children | ff119bb11563 |
comparison
equal
deleted
inserted
replaced
70:5b1249ce812d | 71:1e9d4949bcfd |
---|---|
1 #ifndef __HBUF_H__ | |
2 #define __HBUF_H__ 1 | |
3 | |
4 #include <glib.h> | |
5 | |
6 #define HBB_BLOCKSIZE 1024 // > 20 please | |
7 | |
8 // Flags: | |
9 // - ALLOC: the ptr data has been allocated, it can be freed | |
10 // - PERSISTENT: this is a new history line | |
11 #define HBB_FLAG_ALLOC 1 | |
12 #define HBB_FLAG_PERSISTENT 2 | |
13 // #define HBB_FLAG_FREE 4 | |
14 | |
15 void hbuf_add_line(GList **p_hbuf, char *text, unsigned int width); | |
16 void hbuf_free(GList **p_hbuf); | |
17 void hbuf_rebuild(GList **p_hbuf, unsigned int width); | |
18 | |
19 char **hbuf_get_lines(GList *hbuf, unsigned int n); | |
20 | |
21 #endif /* __HBUF_H__ */ |