Mercurial > pidgin
diff src/gtkutils.h @ 7712:2823111061ba
[gaim-migrate @ 8357]
I did a few things to my drag-and-drop patch. First, I moved the
application/x-im-contact parsing code into its own function, so we don't
have to duplicate stuff. The reason I did this is because Sean suggested
support for dragging x-im-contacts into conversation windows, which is
also implemented now, and it rocks. :)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 03 Dec 2003 02:03:25 +0000 |
parents | 357eb1c39b72 |
children | d691cb95ee67 |
line wrap: on
line diff
--- a/src/gtkutils.h Wed Dec 03 01:27:53 2003 +0000 +++ b/src/gtkutils.h Wed Dec 03 02:03:25 2003 +0000 @@ -313,4 +313,25 @@ */ void gaim_gtk_load_accels(); +/** + * Parses an application/x-im-contact MIME message and returns the + * data inside. + * + * @param msg The MIME message. + * @param all_accounts If TRUE, check all compatible accounts, online or + * offline. If FALSE, check only online accounts. + * @param ret_account The best guess at a compatible protocol, + * based on ret_protocol. If NULL, no account was found. + * @param ret_protocol The returned protocol type. + * @param ret_username The returned username. + * @param ret_alias The returned alias. + * + * @return TRUE if the message was parsed for the minimum necessary data. + * FALSE otherwise. + */ +gboolean gaim_gtk_parse_x_im_contact(const char *msg, gboolean all_accounts, + GaimAccount **ret_account, + char **ret_protocol, char **ret_username, + char **ret_alias); + #endif /* _GAIM_GTK_UTILS_H_ */