Rename function to begin with output_

This commit is contained in:
kyak 2023-12-09 09:48:57 +03:00
parent b966ed5b4b
commit 59f9e27ee0
3 changed files with 6 additions and 6 deletions

View file

@ -471,8 +471,8 @@ struct wlr_box output_usable_area_in_layout_coords(struct output *output);
struct wlr_box output_usable_area_scaled(struct output *output); struct wlr_box output_usable_area_scaled(struct output *output);
void handle_output_power_manager_set_mode(struct wl_listener *listener, void handle_output_power_manager_set_mode(struct wl_listener *listener,
void *data); void *data);
void virtual_output_add(struct server *server, const char *output_name); void output_add_virtual(struct server *server, const char *output_name);
void virtual_output_remove(struct server *server, const char *output_name); void output_remove_virtual(struct server *server, const char *output_name);
void server_init(struct server *server); void server_init(struct server *server);
void server_start(struct server *server); void server_start(struct server *server);

View file

@ -930,14 +930,14 @@ actions_run(struct view *activator, struct server *server,
{ {
const char *output_name = action_get_str(action, "output_name", const char *output_name = action_get_str(action, "output_name",
NULL); NULL);
virtual_output_add(server, output_name); output_add_virtual(server, output_name);
} }
break; break;
case ACTION_TYPE_VIRTUAL_OUTPUT_REMOVE: case ACTION_TYPE_VIRTUAL_OUTPUT_REMOVE:
{ {
const char *output_name = action_get_str(action, "output_name", const char *output_name = action_get_str(action, "output_name",
NULL); NULL);
virtual_output_remove(server, output_name); output_remove_virtual(server, output_name);
} }
break; break;
case ACTION_TYPE_INVALID: case ACTION_TYPE_INVALID:

View file

@ -780,7 +780,7 @@ handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
} }
void void
virtual_output_add(struct server *server, const char *output_name) output_add_virtual(struct server *server, const char *output_name)
{ {
if (output_name) { if (output_name) {
/* /*
@ -805,7 +805,7 @@ virtual_output_add(struct server *server, const char *output_name)
} }
void void
virtual_output_remove(struct server *server, const char *output_name) output_remove_virtual(struct server *server, const char *output_name)
{ {
struct output *output; struct output *output;
wl_list_for_each(output, &server->outputs, link) { wl_list_for_each(output, &server->outputs, link) {