comparison libpurple/util.h @ 18039:c588a4a9d287

A patch from David Grohmann (dave1g) to log embedded images. Closes #725
author Richard Laager <rlaager@wiktel.com>
date Mon, 04 Jun 2007 05:47:06 +0000
parents 2188c95d0311
children c5c265dff90c
comparison
equal deleted inserted replaced
18038:4cda1949878c 18039:c588a4a9d287
30 30
31 #include <stdio.h> 31 #include <stdio.h>
32 32
33 #include "account.h" 33 #include "account.h"
34 #include "xmlnode.h" 34 #include "xmlnode.h"
35 #include "notify.h"
35 36
36 #ifdef __cplusplus 37 #ifdef __cplusplus
37 extern "C" { 38 extern "C" {
38 #endif 39 #endif
39 40
621 * @return The appropriate extension, or "icon" if unknown. 622 * @return The appropriate extension, or "icon" if unknown.
622 */ 623 */
623 const char * 624 const char *
624 purple_util_get_image_extension(gconstpointer data, size_t len); 625 purple_util_get_image_extension(gconstpointer data, size_t len);
625 626
627 /**
628 * Returns a SHA-1 hash string of the data passed in with the correct file
629 * extention appended.
630 */
631 char *purple_util_get_image_filename(gconstpointer image_data, size_t image_len);
632
626 /*@}*/ 633 /*@}*/
627 634
628 635
629 /**************************************************************************/ 636 /**************************************************************************/
630 /** @name Environment Detection Functions */ 637 /** @name Environment Detection Functions */