comparison src/cmds.h @ 10788:19de830330cf

[gaim-migrate @ 12429] " You can't pass NULL as errormsg as the documentation implies. If you do, it segfaults. Perhaps that should be allowable, but as the code stands, it's not. The documentation should be updated in HEAD and oldstatus to reflect this. Attached is a patch to that effect." --rlaager committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 07 Apr 2005 14:41:18 +0000
parents 84cf3fc8a2cb
children ca559e2b1d0a
comparison
equal deleted inserted replaced
10787:c932d96a7c69 10788:19de830330cf
148 * prefix, which the core has no knowledge of. cmd should not contain any 148 * prefix, which the core has no knowledge of. cmd should not contain any
149 * formatting, and should be in plain text (no html entities). 149 * formatting, and should be in plain text (no html entities).
150 * @param markup This is the same as cmd, but is the formatted version. It should be in 150 * @param markup This is the same as cmd, but is the formatted version. It should be in
151 * HTML, with < > and &, at least, escaped to html entities, and should 151 * HTML, with < > and &, at least, escaped to html entities, and should
152 * include both the default formatting and any extra manual formatting. 152 * include both the default formatting and any extra manual formatting.
153 * @param errormsg If the command failed and errormsg is not NULL, it is filled in with 153 * @param errormsg If the command failed errormsg is filled in with the appropriate error
154 * the appropriate error message. It should be freed by the caller with 154 * message. It must be freed by the caller with g_free().
155 * g_free().
156 * @return A GaimCmdStatus indicated if the command succeeded or failed. 155 * @return A GaimCmdStatus indicated if the command succeeded or failed.
157 */ 156 */
158 GaimCmdStatus gaim_cmd_do_command(GaimConversation *conv, const gchar *cmdline, 157 GaimCmdStatus gaim_cmd_do_command(GaimConversation *conv, const gchar *cmdline,
159 const gchar *markup, gchar **errormsg); 158 const gchar *markup, gchar **errormsg);
160 159