aboutsummaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/env.h b/src/env.h
index a25fec0..3acd3f2 100644
--- a/src/env.h
+++ b/src/env.h
@@ -92,8 +92,15 @@ void pw_env_free(struct w2c_env *env);
bool pw_env_link(struct w2c_env *env, struct pw_env_ctx context);
/**
- * Returns whether or not a shutdown is requested.
+ * Starts the Wasm module.
*/
-bool pw_env_shutdown(struct w2c_env *env);
+bool pw_env_start(struct w2c_env *env);
+
+/**
+ * Progresses the Wasm module by a frame.
+ *
+ * `shutdown` is set to true when the cart exits.
+ */
+bool pw_env_iterate(struct w2c_env *env, bool *shutdown);
#endif