mcabber/hooks.h

40 lines
1.5 KiB
C
Raw Permalink Normal View History

#ifndef __MCABBER_HOOKS_H__
#define __MCABBER_HOOKS_H__ 1
#include <time.h>
2009-10-11 15:38:32 +02:00
#include <loudmouth/loudmouth.h>
#include <mcabber/xmpp.h>
// These two defines are used by hk_message_{in,out} arguments
#define ENCRYPTED_PGP 1
#define ENCRYPTED_OTR 2
2007-12-13 20:02:40 +01:00
void hk_message_in(const char *bjid, const char *resname,
2009-10-11 15:38:32 +02:00
time_t timestamp, const char *msg, LmMessageSubType type,
guint encrypted, gboolean carbon);
2007-12-13 20:02:40 +01:00
void hk_message_out(const char *bjid, const char *nickname,
2008-09-24 11:41:29 +02:00
time_t timestamp, const char *msg,
guint encrypted, gboolean carbon, gpointer xep184);
2007-12-13 20:02:40 +01:00
void hk_statuschange(const char *bjid, const char *resname, gchar prio,
2009-10-11 15:38:32 +02:00
time_t timestamp, enum imstatus status,
char const *status_msg);
2007-12-13 20:02:40 +01:00
void hk_mystatuschange(time_t timestamp,
2010-03-14 14:07:25 +01:00
enum imstatus old_status, enum imstatus new_status,
const char *msg);
2010-01-19 15:09:27 +01:00
void hk_postconnect(void);
void hk_predisconnect(void);
2007-11-10 22:29:31 +01:00
void hk_unread_list_change(guint unread_count, guint attention_count,
guint muc_unread, guint muc_attention);
guint hk_subscription(LmMessageSubType mstype, const gchar *bjid,
const gchar *msg);
void hk_ext_cmd_init(const char *command);
void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data);
#endif /* __MCABBER_HOOKS_H__ */
2005-12-04 09:04:02 +01:00
2010-03-22 21:32:11 +01:00
/* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */