aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sway/server.h2
-rw-r--r--sway/commands/exit.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index b1d7523c..6152651e 100644
--- 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
index 10cde640..0f326cea 100644
--- 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;