include/wayland-server.hpp(3)

πŸ¦‹ include/wayland-server.hpp(3) β€” the Wayland++ glow-up ✨

okay so bestie, welcome to the manual page for include/wayland-server.hpp, straight out of the Wayland++ fam πŸ’– this is the server-side header and it is literally the moment, so let's get into it πŸŽ€


🌸 SYNOPSIS 🌸

the includes, verbatim, no cap:

#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 β€” the base-y base class, iconic behaviour
  • class wayland::server::global_t< resource > β€” the templated one, main character energy fr

πŸ¦‹ Typedefs

  • using wayland::server::log_handler = std::function<void(std::string)> β€” the type for functions that handle log messages πŸ‘‘

⭐ Functions

  • void wayland::server::set_log_handler (const log_handler &handler) β€” sets the C library log handler, slay

πŸ’… Typedef Documentation πŸ’…

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

this is the type for functions that handle log messages, periodt. the log message itself is the first argument β€” that's the whole vibe 🫢

πŸ“ defined at line 58 of file wayland-server.hpp β€” yes, we cite our sources, we're classy like that

πŸ”₯ Function Documentation πŸ”₯

void wayland::server::set_log_handler (const log_handler & handler)

sets the C library log handler, bestie. so here's the tea β˜• the C library sometimes logs important info β€” think protocol error messages and such β€” and by default it sends those straight to the standard output. this function lets you set an alternate function that will receive those messages instead. lowkey useful, highkey essential πŸ’œ

🌈 Parameters

  • handler β€” the function that should be called for C library log messages ✨
πŸ’€ heads up: this is about redirecting the C library's default stdout logging β€” it's a handler swap, not magic. don't come for me, I'm just reading the page 🫢

πŸ‘‘ Author πŸ‘‘

generated automatically by Doxygen for Wayland++ from the source code πŸ€–πŸ’– (yes, the robots wrote it, and they ate)


aaaand that's the whole page bestie, no notes πŸŽ€πŸ’«

sign-off: this absolute icon is from Wayland++, version 1.0.1, dated Fri Mar 27 2026 13:15 β€” see you in the next man page, mwah πŸ’…πŸŒΈ

πŸ“¦ where this page comes from