---
name: "xcb_record_create_context"
section: "3"
platform: "linux"
package: "libxcb"
version: "1.17.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/xcb_record_create_context"
---

# xcb\_record\_create\_context(3)

## NAME

xcb\_record\_create\_context -

## SYNOPSIS

**#include \<xcb/record.h\>**

### Request function

xcb\_void\_cookie\_t **xcb\_record\_create\_context**(xcb\_connection\_t \**conn*, xcb\_record\_context\_t *context*, xcb\_record\_element\_header\_t *element\_header*, uint32\_t *num\_client\_specs*, uint32\_t *num\_ranges*, const xcb\_record\_client\_spec\_t \**client\_specs*, const xcb\_record\_range\_t \**ranges*);\

## REQUEST ARGUMENTS

- *conn*

  The XCB connection to X11.

- *context*

  TODO: NOT YET DOCUMENTED.

- *element\_header*

  TODO: NOT YET DOCUMENTED.

- *num\_client\_specs*

  TODO: NOT YET DOCUMENTED.

- *num\_ranges*

  TODO: NOT YET DOCUMENTED.

- *client\_specs*

  TODO: NOT YET DOCUMENTED.

- *ranges*

  TODO: NOT YET DOCUMENTED.

## DESCRIPTION

## RETURN VALUE

Returns an *xcb\_void\_cookie\_t*. Errors (if any) have to be handled in the event loop.

If you want to handle errors directly with *xcb\_request\_check* instead, use *xcb\_record\_create\_context\_checked*. See **[xcb-requests(3)](/xcb-requests/3.md)** for details.

## ERRORS

This request does never generate any errors.

## SEE ALSO

## AUTHOR

Generated from record.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
