Rename render.[hc] to bindings.[hc]
This commit is contained in:
parent
2126ef07f8
commit
b02f660475
@ -38,7 +38,7 @@ fn addDeps(exe: *std.build.LibExeObjStep, protocol_step: *std.build.Step) void {
|
|||||||
exe.step.dependOn(protocol_step);
|
exe.step.dependOn(protocol_step);
|
||||||
exe.addIncludeDir("protocol");
|
exe.addIncludeDir("protocol");
|
||||||
|
|
||||||
exe.addCSourceFile("include/render.c", &[_][]const u8{"-std=c99"});
|
exe.addCSourceFile("include/bindings.c", &[_][]const u8{"-std=c99"});
|
||||||
exe.addIncludeDir(".");
|
exe.addIncludeDir(".");
|
||||||
|
|
||||||
exe.linkLibC();
|
exe.linkLibC();
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#ifndef RIVER_RENDER_H
|
#ifndef RIVER_BINDINGS_H
|
||||||
#define RIVER_RENDER_H
|
#define RIVER_BINDINGS_H
|
||||||
|
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This header is needed since zig cannot yet translate flexible arrays.
|
* This header is needed since zig cannot yet translate flexible arrays.
|
||||||
* See https://github.com/ziglang/zig/issues/4775
|
* 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);
|
struct wlr_output *river_wlr_noop_add_output(struct wlr_backend *backend);
|
||||||
bool river_wlr_output_is_noop(struct wlr_output *output);
|
bool river_wlr_output_is_noop(struct wlr_output *output);
|
||||||
|
|
||||||
#endif
|
#endif // RIVER_BINDINGS_H
|
@ -26,5 +26,5 @@ pub usingnamespace @cImport({
|
|||||||
|
|
||||||
// Contains a subset of functions from wlr/backend.h and wlr/render/wlr_renderer.h
|
// Contains a subset of functions from wlr/backend.h and wlr/render/wlr_renderer.h
|
||||||
// that can be automatically imported
|
// that can be automatically imported
|
||||||
@cInclude("include/render.h");
|
@cInclude("include/bindings.h");
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user