# cmdq_get_callback1

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L685
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmdq_get_callback1/

```c
struct cmdq_item * cmdq_get_callback1(const char *name, cmdq_cb cb, void *data)
```

## Parameters

- `name` (`const char *`)
- `cb` (`cmdq_cb`)
- `data` (`void *`)

## Calls

- [`cmdq_new_state`](/en/tmux/latest/reference/c-function-cmdq_new_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L694)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L690)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L689)

## Referenced by

- [`cmdq_get_callback`](/en/tmux/latest/reference/c-define-tmux-h-cmdq_get_callback/) (constant)

## Referenced declarations

- [`cmdq_item.cb`](/en/tmux/latest/reference/c-struct-cmdq_item-cb/) (attribute)
- [`CMDQ_CALLBACK`](/en/tmux/latest/reference/c-enum-cmdq_type-cmdq_callback/) (constant)
- [`cmdq_cb`](/en/tmux/latest/reference/c-typedef-cmdq_cb/) (typealias)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_item.data`](/en/tmux/latest/reference/c-struct-cmdq_item-data/) (attribute)
- [`cmdq_item.group`](/en/tmux/latest/reference/c-struct-cmdq_item-group/) (attribute)
- [`cmdq_item.name`](/en/tmux/latest/reference/c-struct-cmdq_item-name/) (attribute)
- [`cmdq_item.state`](/en/tmux/latest/reference/c-struct-cmdq_item-state/) (attribute)
- [`cmdq_item.type`](/en/tmux/latest/reference/c-struct-cmdq_item-type/) (attribute)
