aboutsummaryrefslogtreecommitdiff
path: root/cross/src/runtime_requests.c
diff options
context:
space:
mode:
Diffstat (limited to 'cross/src/runtime_requests.c')
-rw-r--r--cross/src/runtime_requests.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/cross/src/runtime_requests.c b/cross/src/runtime_requests.c
index adb2b2f..cf0955c 100644
--- a/cross/src/runtime_requests.c
+++ b/cross/src/runtime_requests.c
@@ -5,26 +5,26 @@
#include <stdlib.h>
#include <string.h>
-static int soul_hot_reload_same_state_action_(soul_t *soul, void *ignore)
+static int world_hot_reload_same_state_action_(world_t *world, void *ignore)
{
(void)ignore;
- return soul_hot_reload_same_state(soul);
+ return world_hot_reload_same_state(world);
}
void montis_do_request_hot_reload(void *plugv)
{
- soul_t *soul = plugv;
+ world_t *world = plugv;
- size_t n = soul->n_requested_actions++;
+ size_t n = world->n_requested_actions++;
if (n < MAX_QUEUED_ACTIONS) {
- soul->requested_actions[n].action = soul_hot_reload_same_state_action_;
- soul->requested_actions[n].arg_dtor = NULL;
+ world->requested_actions[n].action = world_hot_reload_same_state_action_;
+ world->requested_actions[n].arg_dtor = NULL;
}
}
-static int soul_do_log(soul_t *soul, void *chrs)
+static int world_do_log(world_t *world, void *chrs)
{
- (void)soul;
+ (void)world;
char *str = chrs;
puts(str);
return 0;
@@ -32,17 +32,17 @@ static int soul_do_log(soul_t *soul, void *chrs)
void montis_do_request_log(void *plugv, const char *str)
{
- soul_t *soul = plugv;
+ world_t *world = plugv;
- size_t n = soul->n_requested_actions++;
+ size_t n = world->n_requested_actions++;
if (n < MAX_QUEUED_ACTIONS) {
- soul->requested_actions[n].action = soul_do_log;
- soul->requested_actions[n].str_arg = strdup(str);
- soul->requested_actions[n].arg_dtor = free;
+ world->requested_actions[n].action = world_do_log;
+ world->requested_actions[n].str_arg = strdup(str);
+ world->requested_actions[n].arg_dtor = free;
}
}
-static int arksoul_do_exit(void *plugv, int ec)
+static int arkworld_do_exit(void *plugv, int ec)
{
(void)plugv;
exit(ec);
@@ -51,19 +51,19 @@ static int arksoul_do_exit(void *plugv, int ec)
void montis_do_request_exit(void *plugv, int ec)
{
- soul_t *soul = plugv;
+ world_t *world = plugv;
- size_t n = soul->n_requested_actions++;
+ size_t n = world->n_requested_actions++;
if (n < MAX_QUEUED_ACTIONS) {
- soul->requested_actions[n].action =
- (int (*)(soul_t *, void *))arksoul_do_exit;
- soul->requested_actions[n].int_arg = ec;
- soul->requested_actions[n].arg_dtor = NULL;
+ world->requested_actions[n].action =
+ (int (*)(world_t *, void *))arkworld_do_exit;
+ world->requested_actions[n].int_arg = ec;
+ world->requested_actions[n].arg_dtor = NULL;
}
}
-void *arksoul_get_seat(void *ctx)
+void *arkworld_get_seat(void *ctx)
{
- struct montis_server *server = wl_container_of(ctx, server, soul);
+ struct montis_server *server = wl_container_of(ctx, server, world);
return server->seat;
}