Function

Pidginconvert_buddy_icon

Declaration [src]

gpointer
pidgin_convert_buddy_icon (
  PurpleProtocol* protocol,
  const char* path,
  size_t* len
)

Description [src]

Converts a buddy icon to the required size and format.

Parameters

protocol PurpleProtocol
 

The protocol to convert the icon.

 The data is owned by the caller of the function.
path const char*
 

The path of a file to convert.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
len size_t*
 

If not NULL, the length of the returned data will be set here.

 The data is owned by the caller of the function.

Return value

Returns: gpointer
 

The converted image data, or NULL if an error occurred.

 The data is owned by the called function.
 The return value can be NULL.