---
name: "wayland-client.hpp"
section: "3"
platform: "linux"
package: "waylandpp-dev"
version: "1.0.0-6+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/wayland-client.hpp"
---

# wayland-client.hpp(3)

## NAME

include/wayland-client.hpp

## SYNOPSIS

`#include <atomic>`\
 `#include <functional>`\
 `#include <memory>`\
 `#include <string>`\
 `#include <vector>`\
 `#include <cstdint>`\
 `#include <wayland-version.hpp>`\
 `#include <wayland-client-core.h>`\
 `#include <wayland-util.hpp>`\
 `#include <wayland-client-protocol.hpp>`\

### Classes

class **wayland::event\_queue\_t**\
 A queue for **proxy\_t** object events.  class **wayland::proxy\_t**\
 Represents a protocol object on the client side.  class **wayland::read\_intent**\
 Represents an intention to read from the display file descriptor.  class **wayland::display\_t**\
 Represents a connection to the compositor and acts as a proxy to the display singleton object.

### Typedefs

using **wayland::log\_handler** = std::function\< void(std::string)\>\
 Type for functions that handle log messages.

### Functions

void **wayland::set\_log\_handler** (**log\_handler** handler)\
 Set C library log handler.

## Typedef Documentation

### using wayland::log\_handler = typedef std::function\<void(std::string)\>

Type for functions that handle log messages. Log message is the first argument

Definition at line **47** of file **wayland-client.hpp**.

## Function Documentation

### void wayland::set\_log\_handler (log\_handler handler)

Set C library log handler. The C library sometimes logs important information such as protocol error messages, by default to the standard output. This can be used to set an alternate function that will receive those messages.

**Parameters**

*handler* function that should be called for C library log messages

## Author

Generated automatically by Doxygen for Wayland++ from the source code.
