Commit Graph

  • e5eeb6827b Use void instead of struct {} Isaac Freund 2020-11-25 20:00:30 +01:00
  • 7848a30142 @ptrCast() T to ?*c_void not itself Isaac Freund 2020-11-25 10:48:42 +01:00
  • 1bb7c5d0f0 Fix assorted minor errors Isaac Freund 2020-11-24 21:28:01 +01:00
  • b74348e448 Fix missing prefix of generated file names Isaac Freund 2020-11-24 20:47:56 +01:00
  • a355fe89ef Use proper types for fds to ensure ABI compat Isaac Freund 2020-11-23 23:07:09 +01:00
  • 3a644d2671 Add @ptrCasts/return errors from EventLoop functions Isaac Freund 2020-11-23 23:05:04 +01:00
  • 9502db8826 Expose postNoMemory() on server objects Isaac Freund 2020-11-23 22:06:26 +01:00
  • 2a42d7a27b Emit normal C ABI enums as well for bitfields Isaac Freund 2020-11-23 20:24:50 +01:00
  • 65c342ce62 Prefix namespace of unstable protocols with 'z' Isaac Freund 2020-11-21 14:03:20 +01:00
  • f7e3dd462b Put all protocols without prefix in wl namespace Isaac Freund 2020-11-21 11:48:04 +01:00
  • 61e3a8d54e Add recursive ref all decls test, fix errors Isaac Freund 2020-11-20 20:23:56 +01:00
  • 181f9344b2 Migrate missed functions to new list impl Isaac Freund 2020-11-18 18:32:54 +01:00
  • f77821b1aa Improve type safe list API Isaac Freund 2020-11-18 18:25:22 +01:00
  • ba49b2b6f9 Make wl_list bindings type-safe Isaac Freund 2020-11-18 02:35:20 +01:00
  • 0c0f5ccf33 Properly generate server objects without requests Isaac Freund 2020-11-09 00:39:00 +01:00
  • 683511ef00 Fix duplicate generated function Isaac Freund 2020-11-07 11:03:18 +01:00
  • c1b300afab Expose more Resource functions on wrapper objects Isaac Freund 2020-11-06 19:14:03 +01:00
  • 9a3a603f50 Add type safety for server object destroy handlers Isaac Freund 2020-11-06 18:37:25 +01:00
  • a336fec68d Generate create() and destroy() for server objects Isaac Freund 2020-11-06 18:00:44 +01:00
  • 6c7dc1e562 Make packed struct bitfields have alignment of u32 Isaac Freund 2020-11-03 23:12:17 +01:00
  • 931b6f767b Use std.ascii.spaces Isaac Freund 2020-11-03 00:35:56 +01:00
  • 5fd4f6aa1c code: Use std.mem.trim instead of deprecated std.fmt.trim Marten Ringwelski 2020-11-02 15:06:19 +01:00
  • d0fcd31b54 Use process.getCwdAlloc() instead of $PWD Isaac Freund 2020-11-02 13:56:01 +01:00
  • c7f2b5e6d0 Convert relative to absolute paths if needed Isaac Freund 2020-11-02 12:38:14 +01:00
  • 590773b617 Rethink handling of client vs server linkage Isaac Freund 2020-11-01 14:00:46 +01:00
  • f335337bca Add README Isaac Freund 2020-11-01 13:53:47 +01:00
  • b6cbd99882 Integrate scanner with the zig build system Isaac Freund 2020-11-01 12:59:35 +01:00
  • 62c3dbdc9a Drop expat for pure zig xml parser Isaac Freund 2020-10-29 16:42:43 +01:00
  • f1b4bbac4c Add a native Zig XML parser Tadeo Kondrak 2020-10-31 11:39:42 -06:00
  • dad6bea7ce Add example for seats, showing bitfield support Reiner Gerecke 2020-10-22 06:32:12 +02:00
  • a643ab20a1 Use enum attributes in request arguments Reiner Gerecke 2020-10-20 20:16:47 +02:00
  • b4d4428fe8 Implement addSocketAuto() that skips wayland-0 Isaac Freund 2020-10-19 19:45:59 +02:00
  • 9bdc09e66a Fix wrong namespace references for unstable interfaces Reiner Gerecke 2020-10-19 06:42:35 +02:00
  • 1849d4e513 Properly cast Fixed in Dispatcher Reiner Gerecke 2020-10-18 17:27:27 +02:00
  • f4d11e4ed2 Complete implementation of Fixed conversions Reiner Gerecke 2020-10-18 17:17:40 +02:00
  • a9825f44ed Run tests defined in scanner.zig and common_core.zig Reiner Gerecke 2020-10-18 17:15:28 +02:00
  • fbb211dff4 Emit functions accepting optional object pointers Reiner Gerecke 2020-10-18 11:06:18 +02:00
  • 1c52af0b46 Fix handling allow-null attributes when scanning Reiner Gerecke 2020-10-18 10:21:02 +02:00
  • c3bf235498 Fix failing test after refactor Isaac Freund 2020-10-18 11:44:21 +02:00
  • fda4c78e79 Allow void Signal/Listeners, add example Isaac Freund 2020-10-17 23:06:05 +02:00
  • b21e255e02 Make List.next/List.prev nullable Isaac Freund 2020-10-17 21:51:37 +02:00
  • 73b5763460 Remove outdated test data Isaac Freund 2020-10-17 11:49:18 +02:00
  • 16c0fc24e8 Remove wayland.common from public API Isaac Freund 2020-10-15 19:05:25 +02:00
  • 38e12ad2fe Use non-exhaustive enums for forward compatibility Isaac Freund 2020-10-14 22:35:40 +02:00
  • 64a20bf4cb Make all enums extern Isaac Freund 2020-10-13 22:50:25 +02:00
  • 82da74d346 Make Signal/Listener more type safe Isaac Freund 2020-10-12 21:10:48 +02:00
  • f0d4b6306c Use a stronger cast on pointer args Isaac Freund 2020-10-12 01:26:19 +02:00
  • dd00dcf3bb Fill in some wl_display client error handling Isaac Freund 2020-10-12 01:23:24 +02:00
  • caae5189b4 Generate missing @ptrCast Isaac Freund 2020-10-11 22:37:22 +02:00
  • f8f4636abf Emit full namespace for argument types Isaac Freund 2020-10-11 22:28:32 +02:00
  • 5878169e56 Make all enums based on u32 Isaac Freund 2020-10-11 21:52:06 +02:00
  • c1d16f45f1 Import std.os in all generated code Isaac Freund 2020-10-11 21:48:58 +02:00
  • 66d50b6d91 Link libwayland generated interface structs Isaac Freund 2020-10-11 20:01:03 +02:00
  • aa3edd365e Move client/server core to wl namespace Isaac Freund 2020-10-11 17:51:17 +02:00
  • d710b3cec3 Fix generation of wl.Registry.bind Isaac Freund 2020-10-08 16:53:13 +02:00
  • de5909ae8c Handle messages with no args Isaac Freund 2020-10-08 14:31:26 +02:00
  • 8d7f1f546e Handle dashes is xml filenames Isaac Freund 2020-10-08 13:52:35 +02:00
  • 3665ebf961 Fix typo Isaac Freund 2020-10-08 13:48:16 +02:00
  • 92f3f7548a Rename emitInterface -> emitCommon Isaac Freund 2020-10-08 13:42:54 +02:00
  • 1b0b4f0294 Move enums to common Isaac Freund 2020-10-08 13:40:21 +02:00
  • bc9b3b8488 Fix emiting args for client requests Isaac Freund 2020-10-08 13:31:46 +02:00
  • 45834da450 Emit send functions for server Isaac Freund 2020-10-08 13:07:09 +02:00
  • 74cd6de62e Emit server Requests Isaac Freund 2020-10-08 00:42:55 +02:00
  • 9d2505e4c7 Add some example generated server code Isaac Freund 2020-10-07 00:26:44 +02:00
  • 40232ae394 Make Dispatcher work for server as well Isaac Freund 2020-10-07 00:04:35 +02:00
  • 85bef02e7b Preform some general cleanup Isaac Freund 2020-10-06 23:32:00 +02:00
  • 49780b9609 Add ShmBuffer and ShmPool bindings Isaac Freund 2020-10-06 22:17:18 +02:00
  • 8315c1d1e5 Consolidate and flush out server bindings Isaac Freund 2020-10-06 22:04:37 +02:00
  • 46f1eb5b17 Add server display functions Isaac Freund 2020-10-05 18:39:17 +02:00
  • 76845eaabc Fix bitrot in client display functions Isaac Freund 2020-10-05 16:50:28 +02:00
  • 9026e1007f Move client display functions to src/ Isaac Freund 2020-10-05 16:44:56 +02:00
  • 3bf6bbea66 Move non protocol related code to util Isaac Freund 2020-10-05 16:35:59 +02:00
  • e713606356 Start server bindings Isaac Freund 2020-10-05 16:18:25 +02:00
  • 3340f8831f Add wl_list implementation Isaac Freund 2020-10-05 13:29:23 +02:00
  • ee5ffdbba8 Ignore generated files Isaac Freund 2020-10-03 16:00:59 +02:00
  • ab3428cc87 Wrangle everything into proper namespaces Isaac Freund 2020-10-03 14:49:08 +02:00
  • 327681081e Skip emitting events if there are none Isaac Freund 2020-10-03 04:20:55 +02:00
  • 7cbddbbf85 Get the example working with generated code Isaac Freund 2020-10-03 04:10:30 +02:00
  • 3c04592ba9 Emit request functions Isaac Freund 2020-10-03 02:45:48 +02:00
  • ca2cdd4fab Emit setListener() Isaac Freund 2020-10-01 14:31:29 +02:00
  • f33ff5a09e Move Dispatcher to common Isaac Freund 2020-10-01 14:13:22 +02:00
  • 5560b7481e Generate Event structs Isaac Freund 2020-10-01 14:08:42 +02:00
  • 02567c5299 Generate enums and handle invalid identifiers Isaac Freund 2020-10-01 13:09:51 +02:00
  • 2fef3717ee Emit Interface structs with the scanner Isaac Freund 2020-09-30 01:07:12 +02:00
  • 288695f5c9 Remove dead code Isaac Freund 2020-09-28 15:10:13 +02:00
  • 5f48d0846c Strings and Arrays may also be null Isaac Freund 2020-09-28 12:21:23 +02:00
  • 3e2207a533 Use tagged unions for events Isaac Freund 2020-09-28 01:42:38 +02:00
  • bf0684066a Use new opaque {} syntax Isaac Freund 2020-09-26 01:23:03 +02:00
  • dae8765366 Make globals example work Isaac Freund 2020-09-24 23:58:03 +02:00
  • 697309766d Add MIT (expat) license Isaac Freund 2020-09-23 20:47:32 +02:00
  • 5c566bbf32 Test parsing of actual wayland.xml Isaac Freund 2020-09-23 20:40:29 +02:00
  • de61447c13 Add trivial parsing test case Isaac Freund 2020-09-23 19:33:46 +02:00
  • cca2cd4943 Implement rest of essential parsing Isaac Freund 2020-09-23 19:16:19 +02:00
  • c808a20610 Implement some parsing Isaac Freund 2020-09-19 00:53:00 +02:00
  • 430c7dc20a Start work on scanner Isaac Freund 2020-09-16 02:27:51 +02:00
  • 8fb886691a Start wl_proxy bindings Isaac Freund 2020-09-15 00:54:24 +02:00
  • 9cc3c3011e Initial commit Isaac Freund 2020-09-13 23:26:15 +02:00