Method

IdeCommandManagerget_command_by_id

since: 3.34

Declaration

IdeCommand*
ide_command_manager_get_command_by_id (
  IdeCommandManager* self,
  IdeWorkspace* workspace,
  const gchar* command_id
)

Description

Gets a command from one of the loaded command providers if any.

Available since: 3.34

Parameters

workspace

Type: IdeWorkspace

An IdeWorkspace.

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

Type: const gchar*

The identifier of the command.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: IdeCommand

An IdeCommand or NULL.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.