aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/wayland/wayland.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-16 01:45:37 +0900
committerOphestra <cat@gensokyo.uk>2025-11-16 01:45:37 +0900
commit00771efeb46b5828aad6aabc42dca779905ae171 (patch)
tree63ea2f368a522616f679d77257e3db442254601c /internal/wayland/wayland.go
parent61972d61f650be2fb86eb2ead452b74c02b3e00f (diff)
internal/wayland: remove fd typecasts
These are no longer necessary since RawConn is no longer used. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/wayland/wayland.go')
-rw-r--r--internal/wayland/wayland.go17
1 files changed, 12 insertions, 5 deletions
diff --git a/internal/wayland/wayland.go b/internal/wayland/wayland.go
index ee8dfd1e..5f2ecee8 100644
--- a/internal/wayland/wayland.go
+++ b/internal/wayland/wayland.go
@@ -117,19 +117,26 @@ func (e *Error) Error() string {
}
}
-// bindWaylandFd calls hakurei_bind_wayland_fd. A non-nil error has concrete type [Error].
-func bindWaylandFd(socketPath string, fd uintptr, appID, instanceID string, syncFd uintptr) error {
+// securityContextBind calls hakurei_security_context_bind.
+//
+// A non-nil error has concrete type [Error].
+func securityContextBind(
+ socketPath string,
+ serverFd int,
+ appID, instanceID string,
+ closeFd int,
+) error {
if hasNull(appID) || hasNull(instanceID) {
return syscall.EINVAL
}
var e Error
- e.Cause, e.Errno = C.hakurei_bind_wayland_fd(
+ e.Cause, e.Errno = C.hakurei_security_context_bind(
C.CString(socketPath),
- C.int(fd),
+ C.int(serverFd),
C.CString(appID),
C.CString(instanceID),
- C.int(syncFd),
+ C.int(closeFd),
)
if e.Cause == RSuccess {