comparison mcabber/src/hbuf.h @ 795:b16acadd7d53

Improve support for long messages - Up to 10000 lines - Up to 8 kB (HBB_BLOCKSIZE)
author Mikael Berthe <mikael@lilotux.net>
date Sun, 09 Apr 2006 09:22:40 +0200
parents 421b337dc6d2
children e1b7f71b0b1c
comparison
equal deleted inserted replaced
794:32d5298f9f8d 795:b16acadd7d53
4 #include <time.h> 4 #include <time.h>
5 #include <glib.h> 5 #include <glib.h>
6 6
7 // With current implementation a message must fit in a hbuf block, 7 // With current implementation a message must fit in a hbuf block,
8 // so we shouldn't choose a too small size. 8 // so we shouldn't choose a too small size.
9 #define HBB_BLOCKSIZE 4096 // > 20 please 9 #define HBB_BLOCKSIZE 8192 // > 20 please
10 10
11 // Flags: 11 // Flags:
12 // - ALLOC: the ptr data has been allocated, it can be freed 12 // - ALLOC: the ptr data has been allocated, it can be freed
13 // - PERSISTENT: this is a new history line 13 // - PERSISTENT: this is a new history line
14 #define HBB_FLAG_ALLOC 1 14 #define HBB_FLAG_ALLOC 1