/** * @file src/platform/linux/misc.h * @brief Miscellaneous declarations for Linux. */ #pragma once #include #include #include "src/utility.h" KITTY_USING_MOVE_T(file_t, int, -1, { if (el >= 0) { close(el); } }); enum class window_system_e { NONE, ///< No window system X11, ///< X11 WAYLAND, ///< Wayland }; extern window_system_e window_system; namespace dyn { typedef void (*apiproc)(void); int load(void *handle, const std::vector> &funcs, bool strict = true); void * handle(const std::vector &libs); } // namespace dyn