diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-20 22:44:08 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-20 22:44:08 +0100 |
| commit | ba6b8350b17e0198c739893430a8682072f25629 (patch) | |
| tree | 962ea4948861a6e12c5e22bccfe2eb2799fdac40 /src/c.zig | |
| parent | 7b735f690c46f8665627bd9ba5c9019462404aaf (diff) | |
| download | river-ba6b8350b17e0198c739893430a8682072f25629.tar.gz river-ba6b8350b17e0198c739893430a8682072f25629.tar.xz | |
Down to 1 translate c error
Diffstat (limited to 'src/c.zig')
| -rw-r--r-- | src/c.zig | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/c.zig b/src/c.zig new file mode 100644 index 0000000..57302a9 --- /dev/null +++ b/src/c.zig @@ -0,0 +1,30 @@ +// Functions that couldn't be automatically translated + +pub const c = @cImport({ + @cDefine("WLR_USE_UNSTABLE", {}); + @cInclude("time.h"); + @cInclude("stdlib.h"); + @cInclude("wayland-server-core.h"); + @cInclude("wlr/backend.h"); + @cInclude("wlr/render/wlr_renderer.h"); + @cInclude("wlr/types/wlr_cursor.h"); + @cInclude("wlr/types/wlr_compositor.h"); + @cInclude("wlr/types/wlr_data_device.h"); + @cInclude("wlr/types/wlr_input_device.h"); + @cInclude("wlr/types/wlr_keyboard.h"); + @cInclude("wlr/types/wlr_matrix.h"); + @cInclude("wlr/types/wlr_output.h"); + @cInclude("wlr/types/wlr_output_layout.h"); + @cInclude("wlr/types/wlr_pointer.h"); + @cInclude("wlr/types/wlr_seat.h"); + @cInclude("wlr/types/wlr_xcursor_manager.h"); + @cInclude("wlr/types/wlr_xdg_shell.h"); + @cInclude("wlr/util/log.h"); + @cInclude("xkbcommon/xkbcommon.h"); +}); + +pub const manual = struct { + pub inline fn xkb_map_new_from_names(context: var, names: var, flags: var) ?*c.struct_xkb_keymap { + return c.xkb_keymap_new_from_names(context, names, flags); + } +}; |
