Commit Graph

64 Commits

Author SHA1 Message Date
Vaxry 55c78a56c0 client: do not define destroy listener in client mode
fixes #9
2024-06-27 00:24:36 +02:00
Tom Englund c1e34fb2b7
core: avoid undefined behaviour in C macro (#8)
to safely use wl_container_of with a class the class has to be no
virtual functions, no inheritance, and uniform access control (e.g all
public)

work around this by putting this into a destroywrapper struct.
2024-06-26 20:35:08 +02:00
Vaxry 914f083741 client: properly release objects on destroy 2024-06-22 16:50:53 +02:00
Vaxry 1413398dca client: use CC for client classes 2024-06-20 18:20:55 +02:00
Vaxry f2d1d948f1
README: Remove last todos 2024-06-20 00:18:34 +02:00
Vaxry 38140181fe
core: Add client code generation (#6)
Adds a `--client` flag for client code
2024-06-20 00:17:58 +02:00
Mihai Fufezan 1419520d5f
Nix: add cross-build package 2024-06-11 18:21:15 +03:00
Vaxry 0f30f9eca6 cmake: bump ver to 0.3.10 2024-06-07 20:28:26 +02:00
Vaxry 46faf3edc2 source: ignore send... requests when resource is null 2024-06-07 14:35:18 +02:00
Vaxry f84ca21ed8 core: set resource to nullptr in onDestroyCalled
if the consumer does not free this resource within onDestroy, we'd be doing a UAF later in the ~dtor
2024-06-07 11:04:54 +02:00
Vaxry b06c0b8e56 cmake: bump ver to 0.3.9 2024-06-01 17:15:19 +02:00
Vaxry 89b337424b source: set user data after checks 2024-05-31 18:32:08 +02:00
Vaxry 6fdc0ceac9 core: fix external type usage 2024-05-29 22:31:08 +02:00
Vaxry 24cf55c957 core: forward declare all used ifaces 2024-05-29 22:25:22 +02:00
Vaxry 3afed43647 core: avoid uaf in resource_set_user_data 2024-05-18 19:52:55 +01:00
Vaxry f5181a068c cmake: bump ver to 0.3.8 2024-05-16 18:14:23 +01:00
Yaroslav 65c2636484
cmake: add hpp header as target dependency (#4)
target should depend on protoName.hpp otherwise it'll be a build error
in case of deletion of this file
2024-05-13 14:56:29 +01:00
Vaxry e1e94b12d5 core: support null strings 2024-05-12 16:37:43 +01:00
Vaxry 1281c1ed53 core: avoid calling inert parents 2024-05-11 16:56:52 +01:00
Vaxry 9eeabde74a cmake: bump ver to 0.3.7 2024-05-10 23:48:05 +01:00
Vaxry 9ca975c910 core: add --wayland-enums and raw events 2024-05-10 17:52:18 +01:00
Vaxry e2fc1c0eb8 cmake: bump ver to 0.3.6 2024-05-09 21:43:43 +01:00
Vaxry 232fa45d54 core: fix usage of reserved C++ types 2024-05-09 21:16:32 +01:00
Vaxry 94e32ec37e cmake: bump ver to 0.3.5 2024-05-07 15:09:46 +01:00
Vaxry 6119dc2a96 core: fix protocol types in events sometimes unrecognized 2024-05-07 14:26:05 +01:00
Vaxry 1270ebaa53 cmake: bump ver to 0.3.4 2024-05-03 17:59:02 +01:00
Vaxry 3940d97f16 core: fix interfaces with since= attributes 2024-05-03 17:37:58 +01:00
Vaxry c8c2151c60 header: use formatting for ::error() 2024-05-01 19:55:49 +01:00
Vaxry 9e7a3b3139 README: better build instructions 2024-05-01 19:20:02 +01:00
Vaxry 6ae6cd97e8 cmake: bump version to 0.3.3 2024-05-01 19:16:39 +01:00
Vaxry f1050d83a2 core: fix misused boolean 2024-05-01 19:15:35 +01:00
Vaxry c14dd732ff header: include <string> 2024-05-01 19:13:45 +01:00
Vaxry 9ab8ea2d62 core: don't overwrite files if they are the same 2024-05-01 19:12:10 +01:00
Vaxry 43d27dae69 headers: add misc useful functions 2024-05-01 19:12:10 +01:00
Yaroslav 672a965162
CMake: add version to install files (#2) 2024-04-29 22:02:06 +03:00
Yaroslav abbade08f1
cmake: add hyprwayland-scanner-config (#1)
This allows us to add wayland protocol dependencies to other cmake-based
projects with minimum extra code.

Example:

find_package(hyprwayland-scanner REQUIRED)
add_executable(target main.c)
hyprwayland_protocol(
    target
    "linux-dmabuf-v1"
    "${WAYLAND_PROTOCOLS}/linux-dmabuf/"
    "${CMAKE_SOURCE_DIR}/protocols"
)
2024-04-28 13:48:42 +01:00
Vaxry 126dad854f cmake: bump ver to 0.3.2 2024-04-26 23:46:19 +01:00
Vaxry 4eb457b3f7 core: add support for nullable objects 2024-04-26 23:45:55 +01:00
Vaxry 1cfe2d26a8 cmake: bump ver to 0.3.1 2024-04-24 21:08:38 +01:00
Vaxry e60b1bb9a1 source: fix including ->pResource under non-new_id resources 2024-04-24 21:08:28 +01:00
Vaxry 1c9ed159e1 cmake: bump ver to 0.3.0 2024-04-24 16:35:18 +01:00
Vaxry 066c24549f core: fix new_id types in events 2024-04-24 15:46:14 +01:00
Vaxry a0263ab9fc cmakelists: bump ver to 0.2.0 2024-04-22 10:22:45 +01:00
Vaxry 7c9c8adfe7 core: fix missing interfaces 2024-04-21 21:13:44 +01:00
Vaxry 6c4c47329f headers: make enum names more verbose to avoid conflicts 2024-04-21 20:39:44 +01:00
Vaxry 9e13e09152 core: remove destroy listener after fired 2024-04-20 14:26:26 +01:00
Vaxry 7f6cc01d02 README: add todo 2024-04-20 14:24:05 +01:00
Mihai Fufezan eb11420c02
flake.nix: update version 2024-04-20 15:34:22 +03:00
Vaxry a879863993 README: add deps 2024-04-20 13:27:49 +01:00
Mihai Fufezan f58a3f56e8
flake.nix: fix typo 2024-04-20 14:26:34 +03:00