Function

Purpleblist_add_buddy

Declaration [src]

void
purple_blist_add_buddy (
  PurpleBuddy* buddy,
  PurpleContact* contact,
  PurpleGroup* group,
  PurpleBlistNode* node
)

Description [src]

Adds a new buddy to the buddy list.

The buddy will be inserted right after node or prepended to the group if node is NULL. If both are NULL, the buddy will be added to the default group.

Parameters

buddy PurpleBuddy
 

The new buddy who gets added.

 The data is owned by the caller of the function.
contact PurpleContact
 

The optional contact to place the buddy in.

 The data is owned by the caller of the function.
group PurpleGroup
 

The group to add the new buddy to.

 The data is owned by the caller of the function.
node PurpleBlistNode
 

The insertion point. Pass in NULL to add the node as the first child in the given group.

 The data is owned by the caller of the function.