Skip to content

refactor(web): iron_init/setup logic#763

Merged
Benoît Cortier (CBenoit) merged 1 commit into
masterfrom
refactor/iron-remote-desktop-setup-function
Apr 21, 2025
Merged

refactor(web): iron_init/setup logic#763
Benoît Cortier (CBenoit) merged 1 commit into
masterfrom
refactor/iron-remote-desktop-setup-function

Conversation

@CBenoit
Copy link
Copy Markdown
Member

  • iron_init is renamed to setup, so that

    • init is the function for initializing the WASM module.
    • setup is the function taking parameters for logger and performing other setting up operations.
    • Since setup may be called after init is called, it’s possible to use some functions of the WASM module before calling setup if necessity arises.
  • Common initializion code is moved to an hidden "internal" module of iron-remote-desktop crate, that is thus not part of the public API.

  • Restored the "IronRDP is ready" debug log when setup is called.

- `iron_init` is renamed to `setup`, so that
  - `init` is the function for initializing the WASM module.
  - `setup` is the function taking parameters for logger and performing
    other setting up operations.
  - Since `setup` may be called after `init` is called, it’s possible to
    use some functions of the WASM module before calling `setup` if
    necessity arises.

- Common initializion code is moved to an hidden "internal" module of
  iron-remote-desktop crate, that is thus not part of the public API.

- Restored the "IronRDP is ready" debug log when `setup` is called.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean 🧹

@CBenoit Benoît Cortier (CBenoit) merged commit 45884c5 into master Apr 21, 2025
10 checks passed
@CBenoit Benoît Cortier (CBenoit) deleted the refactor/iron-remote-desktop-setup-function branch April 21, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants