Function
PurpleBuddyicons_node_set_custom_icon
Declaration [src]
PurpleImage*
purple_buddy_icons_node_set_custom_icon (
PurpleBlistNode* node,
guchar* icon_data,
size_t icon_len
)
Description [src]
Sets a custom buddy icon for a blist node.
This function will deal with saving a record of the icon, caching the data, etc.
Parameters
node
-
Type:
PurpleBlistNode
The blist node 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. Use NULL to unset the icon.
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. |