diff options
Diffstat (limited to 'src/env.h')
| -rw-r--r-- | src/env.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |
