logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

include/wayland-server.hpp

Author

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

Version 1.0.0                                Wed May 1 2024 17:27:19               include/wayland-server.hpp(3)

Function Documentation

voidwayland::server::set_log_handler(constlog_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.

       Parametershandler function that should be called for C library log messages

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

usingwayland::server::log_handler=typedefstd::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.

See Also