mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
This commit moves the virtual output related functions into their own file at `src/output-virtual.c` with its own include file to reduce `include/labwc.h` bit by bit. Additionally, it removes the need to keep the `server->headless.pending_output_name` char array around by temporarily disconnecting the handler when creating a new virtual output. This allows to set the output name right in the `output_virtual_add()` call rather than to store the pending name until the new output event handler has been called. It also makes adding a virtual fallback output easier in a follow-up PR.
12 lines
339 B
C
12 lines
339 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_OUTPUT_VIRTUAL_H
|
|
#define LABWC_OUTPUT_VIRTUAL_H
|
|
|
|
struct server;
|
|
struct wlr_output;
|
|
|
|
void output_virtual_add(struct server *server, const char *output_name,
|
|
struct wlr_output **store_wlr_output);
|
|
void output_virtual_remove(struct server *server, const char *output_name);
|
|
|
|
#endif
|