comparison 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
comparison
equal deleted inserted replaced
30992:703dd6f433a9 30993:dc996aa83f49
29 29
30 /** 30 /**
31 * Generate the Random GUID 31 * Generate the Random GUID
32 */ 32 */
33 char *rand_guid(void); 33 char *rand_guid(void);
34
35 /**
36 * Encodes the spaces in a string
37 *
38 * @param str The string to be encoded.
39 * @param buf The buffer to hold the encoded string.
40 * @param len The maximum length (including NUL) to put in @buf.
41 *
42 * @return Whether @str was able to fit in @buf.
43 */
44 gboolean
45 msn_encode_spaces(const char *str, char *buf, size_t len);
34 46
35 /** 47 /**
36 * Parses the MSN message formatting into a format compatible with Purple. 48 * Parses the MSN message formatting into a format compatible with Purple.
37 * 49 *
38 * @param mime The mime header with the formatting. 50 * @param mime The mime header with the formatting.