about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 15df5c9..1d8af9a 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -3,6 +3,11 @@ const ls = @import("ls.zig");
 const socket_server = @import("socket-server.zig");
 const sdl_window = @import("sdl-window.zig");
 const brr = @import("brr.zig");
+const cbrr = @cImport({
+    @cInclude("cbrr.h");
+});
+
+extern fn brr_c(filepath: [*:0]const u8) void;
 
 const commands = [_]struct {
     name: []const u8,
@@ -51,7 +56,7 @@ pub fn main() !void {
 
     if (args.len == 3) {
         if (std.mem.eql(u8, args[1], "brr")) {
-            try brr.brr(allocator, args[2]);
+            brr_c(args[2]);
             return;
         }
     }