comparison mcabber/mcabber/hbuf.h @ 1948:e8cebf5fd36c

Add readmark support
author Mikael Berthe <mikael@lilotux.net>
date Mon, 14 Mar 2011 12:48:15 +0100
parents e6d355e50d7a
children f309f343070c
comparison
equal deleted inserted replaced
1947:5ba4d4bb5465 1948:e8cebf5fd36c
27 #define HBB_PREFIX_SPECIAL (1U<<10) 27 #define HBB_PREFIX_SPECIAL (1U<<10)
28 #define HBB_PREFIX_PGPCRYPT (1U<<11) 28 #define HBB_PREFIX_PGPCRYPT (1U<<11)
29 #define HBB_PREFIX_OTRCRYPT (1U<<12) 29 #define HBB_PREFIX_OTRCRYPT (1U<<12)
30 #define HBB_PREFIX_CONT (1U<<13) 30 #define HBB_PREFIX_CONT (1U<<13)
31 #define HBB_PREFIX_RECEIPT (1U<<14) 31 #define HBB_PREFIX_RECEIPT (1U<<14)
32 #define HBB_PREFIX_READMARK (1U<<15)
32 33
33 typedef struct { 34 typedef struct {
34 time_t timestamp; 35 time_t timestamp;
35 guint flags; 36 guint flags;
36 unsigned mucnicklen; 37 unsigned mucnicklen;
47 hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n); 48 hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n);
48 GList *hbuf_search(GList *hbuf, int direction, const char *string); 49 GList *hbuf_search(GList *hbuf, int direction, const char *string);
49 GList *hbuf_jump_date(GList *hbuf, time_t t); 50 GList *hbuf_jump_date(GList *hbuf, time_t t);
50 GList *hbuf_jump_percent(GList *hbuf, int pc); 51 GList *hbuf_jump_percent(GList *hbuf, int pc);
51 gboolean hbuf_remove_receipt(GList *hbuf, gpointer xep184); 52 gboolean hbuf_remove_receipt(GList *hbuf, gpointer xep184);
53 void hbuf_set_readmark(GList *hbuf, gboolean action);
52 54
53 void hbuf_dump_to_file(GList *hbuf, const char *filename); 55 void hbuf_dump_to_file(GList *hbuf, const char *filename);
54 56
55 guint hbuf_get_blocks_number(GList *p_hbuf); 57 guint hbuf_get_blocks_number(GList *p_hbuf);
56 58