1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "wlstate.h" int main() { wlstate_s state; if (!wayc_wlstate_init(&state)) wayc_panic("Failed to initialize Wayland state", nullptr); while (true) { wayc_wlstate_update(&state); } wayc_wlstate_deinit(&state); return 0; }