Wayland++ 1.0.0
C++ Bindings for Wayland
Loading...
Searching...
No Matches
wayland-server.hpp File Reference
#include <atomic>
#include <functional>
#include <list>
#include <memory>
#include <string>
#include <wayland-server-core.h>
#include <wayland-util.hpp>
Include dependency graph for wayland-server.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

◆ log_handler

using wayland::server::log_handler = std::function<void(std::string)>

Type for functions that handle log messages.

Log message is the first argument

Definition at line 57 of file wayland-server.hpp.

Function Documentation

◆ set_log_handler()

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
handlerfunction that should be called for C library log messages