comparison mcabber/src/hooks.c @ 1653:fca9a4c17432

Improve UI latency and CPU usage Remove main_loop(), and use GIOChannels for the FIFO system.
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 01 Dec 2009 21:06:06 +0100
parents cd67b29e04e3
children c3d0cb4dc9d4
comparison
equal deleted inserted replaced
1652:8036750d0169 1653:fca9a4c17432
32 #include "hbuf.h" 32 #include "hbuf.h"
33 #include "settings.h" 33 #include "settings.h"
34 #include "utils.h" 34 #include "utils.h"
35 #include "utf8.h" 35 #include "utf8.h"
36 #include "commands.h" 36 #include "commands.h"
37 #include "fifo.h" 37 #include "main.h"
38 38
39 #ifdef MODULES_ENABLE 39 #ifdef MODULES_ENABLE
40 #include <glib.h> 40 #include <glib.h>
41 41
42 typedef struct { 42 typedef struct {
90 if (now > last + 1) { 90 if (now > last + 1) {
91 // custom_hook(); 91 // custom_hook();
92 last = now; 92 last = now;
93 } 93 }
94 */ 94 */
95 fifo_read();
96 } 95 }
97 96
98 void hk_message_in(const char *bjid, const char *resname, 97 void hk_message_in(const char *bjid, const char *resname,
99 time_t timestamp, const char *msg, LmMessageSubType type, 98 time_t timestamp, const char *msg, LmMessageSubType type,
100 guint encrypted) 99 guint encrypted)