| 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 |