Skip to content

change options API

Alexander Stippich requested to merge astippich/libksane:optionsAPI into master

Reworks the API bits of KSaneOption that I would like to expose in the future. These are renamed and harmonized (i.e. remove get* prefix) and documented.

I added the valueSize() member function here as once the KSaneOption is exposed, we cannot easily add new functions to the vtable if we want to keep binary compatibility (really no expert regarding this, just reading https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B). So if libksane ever supports options with multiple values, we can support it.

Merge request reports