Added basic stanza receive eooks

This commit is contained in:
James Booth
2016-03-27 21:36:29 +01:00
parent 18555ffcb4
commit 8933d59b03
11 changed files with 490 additions and 133 deletions

View File

@@ -71,8 +71,13 @@ typedef struct prof_plugin_t {
void (*post_priv_message_send)(struct prof_plugin_t* plugin, const char * const room, const char * const nick, const char * const message);
char* (*on_message_stanza_send)(struct prof_plugin_t* plugin, const char *const text);
gboolean (*on_message_stanza_receive)(struct prof_plugin_t* plugin, const char *const text);
char* (*on_presence_stanza_send)(struct prof_plugin_t* plugin, const char *const text);
gboolean (*on_presence_stanza_receive)(struct prof_plugin_t* plugin, const char *const text);
char* (*on_iq_stanza_send)(struct prof_plugin_t* plugin, const char *const text);
gboolean (*on_iq_stanza_receive)(struct prof_plugin_t* plugin, const char *const text);
} ProfPlugin;
void plugins_init(void);
@@ -106,8 +111,13 @@ void plugins_post_priv_message_send(const char * const jid, const char * const
void plugins_win_process_line(char *win, const char * const line);
char* plugins_on_message_stanza_send(const char *const text);
gboolean plugins_on_message_stanza_receive(const char *const text);
char* plugins_on_presence_stanza_send(const char *const text);
gboolean plugins_on_presence_stanza_receive(const char *const text);
char* plugins_on_iq_stanza_send(const char *const text);
gboolean plugins_on_iq_stanza_receive(const char *const text);
gboolean plugins_run_command(const char * const cmd);
void plugins_run_timed(void);