Function
PurpleBuddyicons_set_account_icon
Declaration [src]
PurpleImage*
purple_buddy_icons_set_account_icon (
PurpleAccount* account,
guchar* icon_data,
size_t icon_len
)
Description [src]
Sets a buddy icon for an account.
This function will deal with saving a record of the icon, caching the data, etc.
Parameters
account
-
Type:
PurpleAccount
The account for which to set a custom icon.
The data is owned by the caller of the function. icon_data
-
Type:
guchar*
The image data of the icon, which the buddy icon code will free.
The data is owned by the caller of the function. icon_len
-
Type:
size_t
The length of the data in
icon_data
.
Return value
Type: PurpleImage
The icon that was set.
The data is owned by the called function. |