summaryrefslogtreecommitdiffhomepage
path: root/packages/kernel/src/kernel.cpp
blob: 3de39c0ea65da3dc8fb93351d1ac25fdaf272be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <unbox/kernel/kernel.hpp>
#include <unbox/kernel/wlr.hpp>

#include <RmlUi/Core/Core.h>

namespace unbox::kernel {

auto wlroots_version() -> std::string {
    return WLR_VERSION_STR;
}

auto rmlui_version() -> std::string {
    return Rml::GetVersion();
}

auto link_probe() -> bool {
    wlr_log_init(WLR_ERROR, nullptr);
    wl_display* display = wl_display_create();
    if (display == nullptr) {
        return false;
    }
    wl_display_destroy(display);
    return true;
}

} // namespace unbox::kernel