libchewing icon indicating copy to clipboard operation
libchewing copied to clipboard

Design callback based API

Open kanru opened this issue 1 year ago • 0 comments

          > 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

kanru avatar Jul 15 '24 06:07 kanru