libpurple/util.h

branch
soc.2013.gobjectification.plugins
changeset 37135
6271bcdee576
parent 37134
07746c9a04bf
parent 35837
528ddb11791c
child 37901
41e45e18f3b2
child 38016
3ac0882cd563
equal deleted inserted replaced
37134:07746c9a04bf 37135:6271bcdee576
878 * 878 *
879 * Returns: A file pointer to the temporary file, or %NULL on failure. 879 * Returns: A file pointer to the temporary file, or %NULL on failure.
880 */ 880 */
881 FILE *purple_mkstemp(char **path, gboolean binary); 881 FILE *purple_mkstemp(char **path, gboolean binary);
882 882
883 /**
884 * purple_util_get_image_extension:
885 * @data: A pointer to the image data
886 * @len: The length of the image data
887 *
888 * Returns an extension corresponding to the image data's file type.
889 *
890 * Returns: The appropriate extension, or "icon" if unknown.
891 */
892 const char *
893 purple_util_get_image_extension(gconstpointer data, size_t len);
894
895 /**
896 * purple_util_get_image_filename:
897 *
898 * Returns: A hex encoded version of the SHA-1 hash of the data passed
899 * in with the correct file extention appended. The file
900 * extension is determined by calling
901 * purple_util_get_image_extension(). This return value must
902 * be g_freed by the caller.
903 */
904 char *purple_util_get_image_filename(gconstpointer image_data, size_t image_len);
905
906 883
907 /**************************************************************************/ 884 /**************************************************************************/
908 /* Environment Detection Functions */ 885 /* Environment Detection Functions */
909 /**************************************************************************/ 886 /**************************************************************************/
910 887

mercurial