23 lines
495 B
Zig
23 lines
495 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.destroy();
|
|
|
|
try server.start();
|
|
|
|
Log.Info.log("Running server...", .{});
|
|
|
|
server.run();
|
|
}
|