2020-03-19 13:30:38 -07:00
|
|
|
const std = @import("std");
|
2020-03-20 14:44:08 -07:00
|
|
|
const c = @import("c.zig").c;
|
2020-03-19 08:29:22 -07:00
|
|
|
|
2020-03-23 08:50:20 -07:00
|
|
|
const Server = @import("server.zig").Server;
|
|
|
|
|
2020-03-19 08:29:22 -07:00
|
|
|
pub fn main() !void {
|
|
|
|
std.debug.warn("Starting up.\n", .{});
|
|
|
|
|
|
|
|
c.wlr_log_init(c.enum_wlr_log_importance.WLR_DEBUG, null);
|
|
|
|
|
2020-03-25 07:59:24 -07:00
|
|
|
var server: Server = undefined;
|
|
|
|
try server.init(std.heap.c_allocator);
|
2020-03-24 13:18:17 -07:00
|
|
|
defer server.destroy();
|
2020-03-23 13:51:46 -07:00
|
|
|
|
2020-03-22 17:21:15 -07:00
|
|
|
try server.start();
|
2020-03-20 14:44:08 -07:00
|
|
|
|
2020-03-22 17:21:15 -07:00
|
|
|
server.run();
|
2020-03-19 08:29:22 -07:00
|
|
|
}
|