chewing / libchewing

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

Add new API chewing_version() to return runtime library version: #583

Closed kanru closed 2 months ago

kanru commented 3 months ago

Is your feature request related to a problem? Please describe.

libchewing maintains ABI compatibility between versions. We need this new API so that wrappers can query the latest linked version (vs. compiled with version).

Describe the solution you'd like

A new API char* chewing_version() that returns string encoded version string.

Optionally

Additional context

It's nice to have to be able to show runtime version information in ibus-chewing's about page.