aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
blob: 9f81a1217c5a12b81ba13eb2cec24fc7cb9b5665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const std = @import("std");
const c = @import("c.zig").c;

const Server = @import("server.zig").Server;

pub fn main() !void {
    std.debug.warn("Starting up.\n", .{});

    c.wlr_log_init(c.enum_wlr_log_importance.WLR_DEBUG, null);

    var server: Server = undefined;
    try server.init(std.heap.c_allocator);
    defer server.destroy();

    try server.start();

    server.run();
}