You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
39 lines
1.5 KiB
#ifndef __MCABBER_HOOKS_H__ |
|
#define __MCABBER_HOOKS_H__ 1 |
|
|
|
#include <time.h> |
|
#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 |
|
|
|
void hk_message_in(const char *bjid, const char *resname, |
|
time_t timestamp, const char *msg, LmMessageSubType type, |
|
guint encrypted, gboolean carbon); |
|
void hk_message_out(const char *bjid, const char *nickname, |
|
time_t timestamp, const char *msg, |
|
guint encrypted, gboolean carbon, gpointer xep184); |
|
void hk_statuschange(const char *bjid, const char *resname, gchar prio, |
|
time_t timestamp, enum imstatus status, |
|
char const *status_msg); |
|
void hk_mystatuschange(time_t timestamp, |
|
enum imstatus old_status, enum imstatus new_status, |
|
const char *msg); |
|
|
|
void hk_postconnect(void); |
|
void hk_predisconnect(void); |
|
|
|
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__ */ |
|
|
|
/* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */
|
|
|