about summary refs log blame commit diff stats
path: root/LICENSE.txt
blob: ecaae0f009231fafeacecd09439f53b6cf026df8 (plain) (tree)
sent @param barejid Jabber ID of the room @param nick nickname of the message recipient @param message the sent message */ void prof_post_priv_message_send(const char * const barejid, const char * const nick, const char *message); /** Called before an XMPP message stanza is sent @param stanza The stanza to send @return The new stanza to send, or NULL to preserve the original stanza */ char* prof_on_message_stanza_send(const char *const stanza); /** Called when an XMPP message stanza is received @param stanza The stanza received @return 1 if Profanity should continue to process the message stanza, 0 otherwise */ int prof_on_message_stanza_receive(const char *const stanza); /** Called before an XMPP presence stanza is sent @param stanza The stanza to send @return The new stanza to send, or NULL to preserve the original stanza */ char* prof_on_presence_stanza_send(const char *const stanza); /** Called when an XMPP presence stanza is received @param stanza The stanza received @return 1 if Profanity should continue to process the presence stanza, 0 otherwise */ int prof_on_presence_stanza_receive(const char *const stanza); /** Called before an XMPP iq stanza is sent @param stanza The stanza to send @return The new stanza to send, or NULL to preserve the original stanza */ char* prof_on_iq_stanza_send(const char *const stanza); /** Called when an XMPP iq stanza is received @param stanza The stanza received @return 1 if Profanity should continue to process the iq stanza, 0 otherwise */ int prof_on_iq_stanza_receive(const char *const stanza); /** Called when a contact goes offline @param barejid Jabber ID of the contact @param resource the resource being disconnected @param status the status message received with the offline presence, or NULL */ void prof_on_contact_offline(const char *const barejid, const char *const resource, const char *const status); /** Called when a presence notification is received from a contact @param barejid Jabber ID of the contact @param resource the resource being disconnected @param presence presence of the contact, one of "chat", "online", "away", "xa" or "dnd" @param status the status message received with the presence, or NULL @param priority the priority associated with the resource */ void prof_on_contact_presence(const char *const barejid, const char *const resource, const char *const presence, const char *const status, const int priority); /** Called when a chat window is focussed @param barejid Jabber ID of the chat window recipient */ void prof_on_chat_win_focus(const char *const barejid); /** Called when a chat room window is focussed @param barejid Jabber ID of the room */ void prof_on_room_win_focus(const char *const barejid);