Method

PurpleCommandManagerget_commands_for_conversation

unstable since: 3.0

Declaration [src]

GListModel*
purple_command_manager_get_commands_for_conversation (
  PurpleCommandManager* manager,
  PurpleConversation* conversation
)

Description [src]

Gets a list of PurpleCommand‘s that are available for conversation.

Internally this filters the list of commands with purple_tags_contains() to check that all of PurpleCommand:tags are contained in PurpleConversation:tags.

Available since: 3.0

Parameters

conversation

Type: PurpleConversation

The conversation.

The data is owned by the caller of the method.

Return value

Type: A list model of GObject

The list of commands, which may be empty.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.