Rename plugin jid arguments

This commit is contained in:
James Booth
2016-08-10 20:45:14 +01:00
parent b64a9c3d6d
commit a948d741d9
4 changed files with 92 additions and 92 deletions

View File

@@ -72,78 +72,78 @@ void prof_post_chat_message_send(const char * const barejid, const char *message
/**
Called before a chat room message is displayed
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param nick nickname of message sender
@param message the received message
@return the new message to display, or NULL to preserve the original message
*/
char* prof_pre_room_message_display(const char * const room, const char * const nick, const char *message);
char* prof_pre_room_message_display(const char * const barejid, const char * const nick, const char *message);
/**
Called after a chat room message is displayed
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param nick nickname of the message sender
@param message the received message
*/
void prof_post_room_message_display(const char * const room, const char * const nick, const char *message);
void prof_post_room_message_display(const char * const barejid, const char * const nick, const char *message);
/**
Called before a chat room message is sent
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param message the message to be sent
@return the new message to send, or NULL to preserve the original message
*/
char* prof_pre_room_message_send(const char * const room, const char *message);
char* prof_pre_room_message_send(const char * const barejid, const char *message);
/**
Called after a chat room message has been sent
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param message the sent message
*/
void prof_post_room_message_send(const char * const room, const char *message);
void prof_post_room_message_send(const char * const barejid, const char *message);
/**
Called when the server sends a chat room history message
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param nick nickname of the message sender
@param message the message to be sent
@param timestamp time the message was originally sent to the room, in ISO8601 format
*/
void prof_on_room_history_message(const char * const room, const char *const nick, const char *const message, const char *const timestamp);
void prof_on_room_history_message(const char * const barejid, const char *const nick, const char *const message, const char *const timestamp);
/**
Called before a private chat room message is displayed
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param nick nickname of message sender
@param message the received message
@return the new message to display, or NULL to preserve the original message
*/
char* prof_pre_priv_message_display(const char * const room, const char * const nick, const char *message);
char* prof_pre_priv_message_display(const char * const barejid, const char * const nick, const char *message);
/**
Called after a private chat room message is displayed
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param nick nickname of the message sender
@param message the received message
*/
void prof_post_priv_message_display(const char * const room, const char * const nick, const char *message);
void prof_post_priv_message_display(const char * const barejid, const char * const nick, const char *message);
/**
Called before a private chat room message is sent
@param room Jabber ID of the room
@param barejid Jabber ID of the room
@param nick nickname of message recipient
@param message the message to be sent
@return the new message to send, or NULL to preserve the original message
*/
char* prof_pre_priv_message_send(const char * const room, const char * const nick, const char *message);
char* prof_pre_priv_message_send(const char * const barejid, const char * const nick, const char *message);
/**
Called after a private chat room message has been sent
@param room Jabber ID of the room
@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 room, const char * const nick, const char *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
@@ -213,6 +213,6 @@ void prof_on_chat_win_focus(const char *const barejid);
/**
Called when a chat room window is focussed
@param room Jabber ID of the room
@param barejid Jabber ID of the room
*/
void prof_on_room_win_focus(const char *const room);
void prof_on_room_win_focus(const char *const barejid);

View File

@@ -119,13 +119,13 @@ def prof_post_chat_message_send(barejid, message):
pass
def prof_pre_room_message_display(room, nick, message):
def prof_pre_room_message_display(barejid, nick, message):
"""Called before a chat room message is displayed
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of message sender
:param message: the received message
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
:return: the new message to display, or ``None`` to preserve the original message
@@ -134,25 +134,25 @@ def prof_pre_room_message_display(room, nick, message):
pass
def prof_post_room_message_display(room, nick, message):
def prof_post_room_message_display(barejid, nick, message):
"""Called after a chat room message is displayed
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of the message sender
:param message: the received message
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
"""
pass
def prof_pre_room_message_send(room, message):
def prof_pre_room_message_send(barejid, message):
"""Called before a chat room message is sent
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param message: the message to be sent
:type room: str or unicode
:type barejid: str or unicode
:type message: str or unicode
:return: the new message to send, or ``None`` to preserve the original message
:rtype: str or unicode
@@ -160,25 +160,25 @@ def prof_pre_room_message_send(room, message):
pass
def prof_post_room_message_send(room, message):
def prof_post_room_message_send(barejid, message):
"""Called after a chat room message has been sent
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param message: the sent message
:type room: str or unicode
:type barejid: str or unicode
:type message: str or unicode
"""
pass
def prof_on_room_history_message(room, nick, message, timestamp):
def prof_on_room_history_message(barejid, nick, message, timestamp):
"""Called when the server sends a chat room history message
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of the message sender
:param message: the message to be sent
:param timestamp: time the message was originally sent to the room, in ISO8601 format
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
:type timestamp: str or unicode
@@ -186,13 +186,13 @@ def prof_on_room_history_message(room, nick, message, timestamp):
pass
def prof_pre_priv_message_display(room, nick, message):
def prof_pre_priv_message_display(barejid, nick, message):
"""Called before a private chat room message is displayed
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of message sender
:param message: the received message
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
:return: the new message to display, or ``None`` to preserve the original message
@@ -201,26 +201,26 @@ def prof_pre_priv_message_display(room, nick, message):
pass
def prof_post_priv_message_display(room, nick, message):
def prof_post_priv_message_display(barejid, nick, message):
"""Called after a private chat room message is displayed
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of the message sender
:param message: the received message
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
"""
pass
def prof_pre_priv_message_send(room, nick, message):
def prof_pre_priv_message_send(barejid, nick, message):
"""Called before a private chat room message is sent
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of message recipient
:param message: the message to be sent
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
:return: the new message to send, or ``None`` to preserve the original message
@@ -229,13 +229,13 @@ def prof_pre_priv_message_send(room, nick, message):
pass
def prof_post_priv_message_send(room, nick, message):
def prof_post_priv_message_send(barejid, nick, message):
"""Called after a private chat room message has been sent
:param room: Jabber ID of the room
:param barejid: Jabber ID of the room
:param nick: nickname of the message recipient
:param message: the sent message
:type room: str or unicode
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
"""
@@ -347,10 +347,10 @@ def prof_on_chat_win_focus(barejid):
pass
def prof_on_room_win_focus(room):
def prof_on_room_win_focus(barejid):
"""Called when a chat room window is focussed
:param room: Jabber ID of the room
:type room: str or unicode
:param barejid: Jabber ID of the room
:type barejid: str or unicode
"""
pass