river/src/main.zig

19 lines
386 B
Zig
Raw Normal View History

const std = @import("std");
2020-03-29 17:36:15 +00:00
const c = @import("c.zig");
2020-03-19 15:29:22 +00:00
2020-03-23 15:50:20 +00:00
const Server = @import("server.zig").Server;
2020-03-19 15:29:22 +00:00
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);
2020-03-24 20:18:17 +00:00
defer server.destroy();
2020-03-23 00:21:15 +00:00
try server.start();
2020-03-20 21:44:08 +00:00
2020-03-23 00:21:15 +00:00
server.run();
2020-03-19 15:29:22 +00:00
}