Mercurial > ~mikael > mcabber > hg
view mcabber/src/hbuf.h @ 74:b392112ab995
[/trunk] Changeset 88 by mikael
* Switch to using hbuf, the new history buffer implementation.
* I've had to rewrite some parts of the interface, and I have removed
the frames for the roster and the chat window.
* The wrapping is not perfect, as the prefix is not yet treated separately...
* Seems to be a display problem when receiving UTF-8, too. :-(
author | mikael |
---|---|
date | Sat, 16 Apr 2005 16:37:31 +0000 |
parents | 1e9d4949bcfd |
children | ff119bb11563 |
line wrap: on
line source
#ifndef __HBUF_H__ #define __HBUF_H__ 1 #include <glib.h> #define HBB_BLOCKSIZE 1024 // > 20 please // Flags: // - ALLOC: the ptr data has been allocated, it can be freed // - PERSISTENT: this is a new history line #define HBB_FLAG_ALLOC 1 #define HBB_FLAG_PERSISTENT 2 // #define HBB_FLAG_FREE 4 void hbuf_add_line(GList **p_hbuf, char *text, unsigned int width); void hbuf_free(GList **p_hbuf); void hbuf_rebuild(GList **p_hbuf, unsigned int width); char **hbuf_get_lines(GList *hbuf, unsigned int n); #endif /* __HBUF_H__ */