All checks were successful
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Successful in 2m21s
Test / Hakurei (push) Successful in 3m20s
Test / Hpkg (push) Successful in 4m9s
Test / Sandbox (race detector) (push) Successful in 4m24s
Test / Hakurei (race detector) (push) Successful in 5m16s
Test / Flake checks (push) Successful in 1m32s
Note: wl_registry_add_listener is undocumented everywhere. Its implementation calls wl_proxy_add_listener which returns 0 on success or -1 on failure. Signed-off-by: Ophestra <cat@gensokyo.uk>
25 lines
689 B
C
25 lines
689 B
C
typedef enum {
|
|
HAKUREI_WAYLAND_SUCCESS,
|
|
/* wl_display_connect_to_fd failed, errno */
|
|
HAKUREI_WAYLAND_CONNECT,
|
|
/* wl_registry_add_listener failed, errno */
|
|
HAKUREI_WAYLAND_LISTENER,
|
|
/* wl_display_roundtrip failed, errno */
|
|
HAKUREI_WAYLAND_ROUNDTRIP,
|
|
/* compositor does not implement wp_security_context_v1 */
|
|
HAKUREI_WAYLAND_NOT_AVAIL,
|
|
/* socket failed, errno */
|
|
HAKUREI_WAYLAND_SOCKET,
|
|
/* bind failed, errno */
|
|
HAKUREI_WAYLAND_BIND,
|
|
/* listen failed, errno */
|
|
HAKUREI_WAYLAND_LISTEN,
|
|
} hakurei_wayland_res;
|
|
|
|
hakurei_wayland_res hakurei_bind_wayland_fd(
|
|
char *socket_path,
|
|
int fd,
|
|
const char *app_id,
|
|
const char *instance_id,
|
|
int sync_fd);
|