libpurple/protocols/yahoo/ymsg.h

branch
soc.2013.gobjectification.plugins
changeset 37016
48f85579cc4c
parent 35268
0ff850475a1d
parent 36800
c9f5588d027b
child 37133
832cd077145e
equal deleted inserted replaced
37015:28ee14bbe0ab 37016:48f85579cc4c
328 /** 328 /**
329 * Encode some text to send to the yahoo server. 329 * Encode some text to send to the yahoo server.
330 * 330 *
331 * @param gc The connection handle. 331 * @param gc The connection handle.
332 * @param str The null terminated utf8 string to encode. 332 * @param str The null terminated utf8 string to encode.
333 * @param utf8 If not @c NULL, whether utf8 is okay or not. 333 * @param utf8 Whether to return a UTF-8 string.
334 * Even if it is okay, we may not use it. If we 334 * @return A g_malloc'ed string in the appropriate encoding. If jd->jp or
335 * used it, we set this to @c TRUE, else to 335 * utf8 is true then the string is copied verbatim. Otherwise the
336 * @c FALSE. If @c NULL, false is assumed, and 336 * encoding from account settings is used.
337 * it is not dereferenced. 337 */
338 * @return The g_malloced string in the appropriate encoding. 338 gchar *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean utf8);
339 */
340 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8);
341 339
342 /** 340 /**
343 * Decode some text received from the server. 341 * Decode some text received from the server.
344 * 342 *
345 * @param gc The gc handle. 343 * @param gc The gc handle.

mercurial