mcabber/src/hooks.c
changeset 1426 a64778f5f26b
parent 1425 b0cfd9ab4b9f
child 1444 3bf11085c6a5
equal deleted inserted replaced
1425:b0cfd9ab4b9f 1426:a64778f5f26b
    31 #include "settings.h"
    31 #include "settings.h"
    32 #include "utils.h"
    32 #include "utils.h"
    33 #include "utf8.h"
    33 #include "utf8.h"
    34 #include "commands.h"
    34 #include "commands.h"
    35 
    35 
       
    36 #ifdef ENABLE_FIFO
       
    37 # include "fifo.h"
       
    38 #endif
       
    39 
    36 static char *extcmd;
    40 static char *extcmd;
    37 
    41 
    38 static const char *COMMAND_ME = "/me ";
    42 static const char *COMMAND_ME = "/me ";
    39 
    43 
    40 void hk_mainloop(void)
    44 void hk_mainloop(void)
    48   if (now > last + 1) {
    52   if (now > last + 1) {
    49     // custom_hook();
    53     // custom_hook();
    50     last = now;
    54     last = now;
    51   }
    55   }
    52   */
    56   */
       
    57 #ifdef ENABLE_FIFO
       
    58   fifo_read();
       
    59 #endif
    53 }
    60 }
    54 
    61 
    55 void hk_message_in(const char *bjid, const char *resname,
    62 void hk_message_in(const char *bjid, const char *resname,
    56                           time_t timestamp, const char *msg, const char *type,
    63                           time_t timestamp, const char *msg, const char *type,
    57                           guint encrypted)
    64                           guint encrypted)