commit 0153bc92abb4974c1a3421a79e976dcf9938e50a
parent d3e1c13e1f40d38a454fa0236975c4d5196bd77e
Author: Simon Ser <contact@emersion.fr>
Date: Thu, 17 Apr 2025 19:11:37 +0200
server: move sway_terminate() definition to header
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/sway/server.h b/include/sway/server.h
@@ -158,6 +158,8 @@ extern struct sway_debug debug;
extern bool allow_unsupported_gpu;
+void sway_terminate(int exit_code);
+
bool server_init(struct sway_server *server);
void server_fini(struct sway_server *server);
bool server_start(struct sway_server *server);
diff --git a/sway/commands/exit.c b/sway/commands/exit.c
@@ -1,8 +1,7 @@
#include <stddef.h>
#include "sway/commands.h"
#include "sway/config.h"
-
-void sway_terminate(int exit_code);
+#include "sway/server.h"
struct cmd_results *cmd_exit(int argc, char **argv) {
struct cmd_results *error = NULL;