Rename render.[hc] to bindings.[hc]

This commit is contained in:
Isaac Freund 2020-04-15 12:47:55 +02:00
parent 2126ef07f8
commit b02f660475
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
4 changed files with 6 additions and 5 deletions

View file

@ -38,7 +38,7 @@ fn addDeps(exe: *std.build.LibExeObjStep, protocol_step: *std.build.Step) void {
exe.step.dependOn(protocol_step);
exe.addIncludeDir("protocol");
exe.addCSourceFile("include/render.c", &[_][]const u8{"-std=c99"});
exe.addCSourceFile("include/bindings.c", &[_][]const u8{"-std=c99"});
exe.addIncludeDir(".");
exe.linkLibC();

View file

@ -1,7 +1,8 @@
#ifndef RIVER_RENDER_H
#define RIVER_RENDER_H
#ifndef RIVER_BINDINGS_H
#define RIVER_BINDINGS_H
#include <wlr/backend/session.h>
/*
* This header is needed since zig cannot yet translate flexible arrays.
* See https://github.com/ziglang/zig/issues/4775
@ -31,4 +32,4 @@ struct wlr_backend *river_wlr_noop_backend_create(struct wl_display *display);
struct wlr_output *river_wlr_noop_add_output(struct wlr_backend *backend);
bool river_wlr_output_is_noop(struct wlr_output *output);
#endif
#endif // RIVER_BINDINGS_H

View file

@ -26,5 +26,5 @@ pub usingnamespace @cImport({
// Contains a subset of functions from wlr/backend.h and wlr/render/wlr_renderer.h
// that can be automatically imported
@cInclude("include/render.h");
@cInclude("include/bindings.h");
});