chewing / libchewing

libchewing - The intelligent phonetic input method library
https://chewing.im/
GNU Lesser General Public License v2.1
359 stars 90 forks source link

Design callback based API #609

Open kanru opened 1 month ago

kanru commented 1 month ago
          > I guess for chewing you may want to only show aux/notification when calling the handle_* API, not the set_* that modifies the state directly.

This is a good point.

Callback based API sounds good but we need to think about issues like function reentrant and multi-threading.

For now I'm thinking to stick with current approach and explore callback based design post-1.0 deprecated API clean-up.

Originally posted by @kanru in https://github.com/chewing/libchewing/issues/506#issuecomment-2089934591