Mercurial > pidgin
diff libpurple/protocols/msn/msnutils.h @ 30993:dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
since they're basically the same.
Also fixes #13034.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 03 Dec 2010 04:51:48 +0000 |
parents | 0201164946a3 |
children | 5981b4116b52 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msnutils.h Fri Dec 03 03:49:40 2010 +0000 +++ b/libpurple/protocols/msn/msnutils.h Fri Dec 03 04:51:48 2010 +0000 @@ -33,6 +33,18 @@ char *rand_guid(void); /** + * Encodes the spaces in a string + * + * @param str The string to be encoded. + * @param buf The buffer to hold the encoded string. + * @param len The maximum length (including NUL) to put in @buf. + * + * @return Whether @str was able to fit in @buf. + */ +gboolean +msn_encode_spaces(const char *str, char *buf, size_t len); + +/** * Parses the MSN message formatting into a format compatible with Purple. * * @param mime The mime header with the formatting.