river/src/main.zig
2020-04-18 12:21:43 +02:00

25 lines
542 B
Zig

const std = @import("std");
const c = @import("c.zig");
const Log = @import("log.zig").Log;
const Server = @import("server.zig").Server;
pub fn main() !void {
Log.init(Log.Debug);
c.wlr_log_init(c.enum_wlr_log_importance.WLR_ERROR, null);
Log.Info.log("Initializing server", .{});
var server: Server = undefined;
try server.init(std.heap.c_allocator);
defer server.deinit();
try server.start();
Log.Info.log("Running server...", .{});
server.run();
Log.Info.log("Shutting down server", .{});
}