| /* SPDX-License-Identifier: GPL-2.0-only */ | |
| // Copyright (c) 2026 Jarkko Sakkinen | |
| #ifndef UCELLS_HANDLE_H | |
| #define UCELLS_HANDLE_H | |
| #include "uapi.h" | |
| struct handle_pair { | |
| int supervisor_fd; | |
| struct file_identity client_id; | |
| }; | |
| /* Returns the client fd; pair owns the supervisor end on success. */ | |
| int handle_pair_create(bool nonblocking_client, struct handle_pair *pair); | |
| bool handle_push_exit_status(const struct handle_pair *pair, int32_t status); | |
| #endif |