Commit graph

74 commits

Author SHA1 Message Date
eebf1cb749 core: fixup client pointer types 2024-09-19 22:46:48 +01:00
9df631193a version: bump to 0.4.1 2024-09-19 22:40:38 +01:00
4d3d80fcb1 core: fixup client new_id handling 2024-09-19 22:38:51 +01:00
f68f159255 README: add flags 2024-09-16 09:01:29 +01:00
a048a6cb01
flake.lock: update 2024-07-18 20:35:19 +03:00
8907e8a64e
CMake: fix version path 2024-07-18 20:33:41 +03:00
4a1f262f37
CMake: fmt 2024-07-18 20:30:13 +03:00
117b6d93ed
CMake, Nix: add VERSION file 2024-07-18 20:29:59 +03:00
d5fa094ca2 cmake: bump ver to 0.4.0 2024-07-05 23:44:17 +02:00
bd7b1f808e client: destroy proxy when no dtor is available 2024-07-01 14:32:46 +02:00
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
914f083741 client: properly release objects on destroy 2024-06-22 16:50:53 +02:00
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
1419520d5f
Nix: add cross-build package 2024-06-11 18:21:15 +03:00
0f30f9eca6 cmake: bump ver to 0.3.10 2024-06-07 20:28:26 +02:00
46faf3edc2 source: ignore send... requests when resource is null 2024-06-07 14:35:18 +02:00
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
b06c0b8e56 cmake: bump ver to 0.3.9 2024-06-01 17:15:19 +02:00
89b337424b source: set user data after checks 2024-05-31 18:32:08 +02:00
6fdc0ceac9 core: fix external type usage 2024-05-29 22:31:08 +02:00
24cf55c957 core: forward declare all used ifaces 2024-05-29 22:25:22 +02:00
3afed43647 core: avoid uaf in resource_set_user_data 2024-05-18 19:52:55 +01:00
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
e1e94b12d5 core: support null strings 2024-05-12 16:37:43 +01:00
1281c1ed53 core: avoid calling inert parents 2024-05-11 16:56:52 +01:00
9eeabde74a cmake: bump ver to 0.3.7 2024-05-10 23:48:05 +01:00
9ca975c910 core: add --wayland-enums and raw events 2024-05-10 17:52:18 +01:00
e2fc1c0eb8 cmake: bump ver to 0.3.6 2024-05-09 21:43:43 +01:00
232fa45d54 core: fix usage of reserved C++ types 2024-05-09 21:16:32 +01:00
94e32ec37e cmake: bump ver to 0.3.5 2024-05-07 15:09:46 +01:00
6119dc2a96 core: fix protocol types in events sometimes unrecognized 2024-05-07 14:26:05 +01:00
1270ebaa53 cmake: bump ver to 0.3.4 2024-05-03 17:59:02 +01:00
3940d97f16 core: fix interfaces with since= attributes 2024-05-03 17:37:58 +01:00
c8c2151c60 header: use formatting for ::error() 2024-05-01 19:55:49 +01:00
9e7a3b3139 README: better build instructions 2024-05-01 19:20:02 +01:00
6ae6cd97e8 cmake: bump version to 0.3.3 2024-05-01 19:16:39 +01:00
f1050d83a2 core: fix misused boolean 2024-05-01 19:15:35 +01:00
c14dd732ff header: include <string> 2024-05-01 19:13:45 +01:00
9ab8ea2d62 core: don't overwrite files if they are the same 2024-05-01 19:12:10 +01:00
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
126dad854f cmake: bump ver to 0.3.2 2024-04-26 23:46:19 +01:00
4eb457b3f7 core: add support for nullable objects 2024-04-26 23:45:55 +01:00
1cfe2d26a8 cmake: bump ver to 0.3.1 2024-04-24 21:08:38 +01:00
e60b1bb9a1 source: fix including ->pResource under non-new_id resources 2024-04-24 21:08:28 +01:00