Function

Purpleblist_add_buddy

Declaration [src]

void
purple_blist_add_buddy (
  PurpleBuddy* buddy,
  PurpleMetaContact* 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

Type: PurpleBuddy

The new buddy who gets added.

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

Type: PurpleMetaContact

The optional contact to place the buddy in.

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

Type: PurpleGroup

The group to add the new buddy to.

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

Type: 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.