Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow client-only architecture #71

Open
wants to merge 2 commits into
base: fcitx
Choose a base branch
from

Conversation

eagleoflqj
Copy link
Member

@eagleoflqj eagleoflqj commented Nov 15, 2024

Android, iOS and Web cannot use the C-S architecture as-is. The core part of server is SessionHandler. Created a static global variable so server is not needed.
Created MozcClientInterface to allow both architectures.
MozcClient is a simplified version of mozc::client::Client, which keeps all APIs used by fcitx and discards those not used.
MozcClientHolder becomes a proxy of mozc::client::Client.
--define server=1 to keep existing C-S arch and --define server=0 for simplified arch.
Note: only Linux C-S should still be preferred because mozc_tool also talks to mozc_server. Only other platforms there is no mozc_tool yet so this is not a concern compared to not having fcitx5-mozc running at all.

@wengxt
Copy link
Member

wengxt commented Nov 15, 2024

Please create a shim layer and make it a compile time switch.

@eagleoflqj eagleoflqj changed the title let engine own SessionHandler to get rid of server [skip ci] allow client-only architecture Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants