| 1 | // SPDX-License-Identifier: MPL-2.0 |
| 2 | // Copyright (c) 2024 Yuxuan Shui <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | struct x_connection; |
| 7 | |
| 8 | /// Fork the process to create a detached underling process. A new connection to the X |
| 9 | /// server is created for the underling. |
| 10 | /// @return 0 in the child process, 1 in the parent process, -1 on failure |
| 11 | int spawn_picomling(struct x_connection *); |