Mercurial > pidgin.yaz
comparison libpurple/util.h @ 16495:b8b2e35ec7c6
Fix purple_util_get_image_extension()'s data param. to be correctly marked as constant.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 27 Apr 2007 03:45:56 +0000 |
parents | 391a79778f89 |
children | ba768014f91f fd6c3dc4641f |
comparison
equal
deleted
inserted
replaced
16494:fc76627be6de | 16495:b8b2e35ec7c6 |
---|---|
467 * entity pointed to by @a text. For example, purple_markup_unescape_entity("&") | 467 * entity pointed to by @a text. For example, purple_markup_unescape_entity("&") |
468 * will return "&". The @a text variable is expected to point to an '&', | 468 * will return "&". The @a text variable is expected to point to an '&', |
469 * the first character of the entity. If given an unrecognized entity, the function | 469 * the first character of the entity. If given an unrecognized entity, the function |
470 * returns @c NULL. | 470 * returns @c NULL. |
471 * | 471 * |
472 * Note that this function, unlike purple_unescape_html(), does not search | 472 * Note that this function, unlike purple_unescape_html(), does not search |
473 * the string for the entity, does not replace the entity, and does not | 473 * the string for the entity, does not replace the entity, and does not |
474 * return a newly allocated string. | 474 * return a newly allocated string. |
475 * | 475 * |
476 * @param text A string containing an HTML entity. | 476 * @param text A string containing an HTML entity. |
477 * @param length If not @c NULL, the string length of the entity is stored in this location. | 477 * @param length If not @c NULL, the string length of the entity is stored in this location. |
604 * @param len The length of the image data | 604 * @param len The length of the image data |
605 * | 605 * |
606 * @return The appropriate extension, or "icon" if unknown. | 606 * @return The appropriate extension, or "icon" if unknown. |
607 */ | 607 */ |
608 const char * | 608 const char * |
609 purple_util_get_image_extension(gpointer data, size_t len); | 609 purple_util_get_image_extension(gconstpointer data, size_t len); |
610 | 610 |
611 /*@}*/ | 611 /*@}*/ |
612 | 612 |
613 | 613 |
614 /**************************************************************************/ | 614 /**************************************************************************/ |