---
name: "wayland-server.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-server.hpp"
---

# wayland-server.hpp(3)

## NAME

include/wayland-server.hpp

## SYNOPSIS

`#include <atomic>`\
 `#include <functional>`\
 `#include <list>`\
 `#include <memory>`\
 `#include <string>`\
 `#include <cstdint>`\
 `#include <wayland-server-core.h>`\
 `#include <wayland-util.hpp>`\

### Classes

class **wayland::server::global\_base\_t**\
 class **wayland::server::global\_t\< resource \>**\

### Typedefs

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

### Functions

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

## Typedef Documentation

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

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

Definition at line **58** of file **wayland-server.hpp**.

## Function Documentation

### void wayland::server::set\_log\_handler (const 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.
