mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
server: move sway_terminate() definition to header
This commit is contained in:
parent
d3e1c13e1f
commit
0153bc92ab
2 changed files with 3 additions and 2 deletions
|
|
@ -158,6 +158,8 @@ extern struct sway_debug debug;
|
||||||
|
|
||||||
extern bool allow_unsupported_gpu;
|
extern bool allow_unsupported_gpu;
|
||||||
|
|
||||||
|
void sway_terminate(int exit_code);
|
||||||
|
|
||||||
bool server_init(struct sway_server *server);
|
bool server_init(struct sway_server *server);
|
||||||
void server_fini(struct sway_server *server);
|
void server_fini(struct sway_server *server);
|
||||||
bool server_start(struct sway_server *server);
|
bool server_start(struct sway_server *server);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "sway/commands.h"
|
#include "sway/commands.h"
|
||||||
#include "sway/config.h"
|
#include "sway/config.h"
|
||||||
|
#include "sway/server.h"
|
||||||
void sway_terminate(int exit_code);
|
|
||||||
|
|
||||||
struct cmd_results *cmd_exit(int argc, char **argv) {
|
struct cmd_results *cmd_exit(int argc, char **argv) {
|
||||||
struct cmd_results *error = NULL;
|
struct cmd_results *error = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue