Comment 4 for bug 1086504

Revision history for this message
su_v (suv-lp) wrote :

@JazzyNico: with regard to
> assignee: nobody → ~suv (suv-lp)

I don't think there's a chance I'd be able to get anywhere close to achieve this:

> 3) If possible, implement a runtime version check of libvisio in
> 'src/extension/internal/vsd-input.cpp', to only enable formats
> supported by the currently installed version of libvisio.

AFAICT based on the doxygen docs I have from libvisio 0.0.23, libvisio does not define macros for the version (libwpg, libwpd on the other hand do have macros for VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_STRING), nor does it offer a function to check the runtime version as for example cairo used to:
<http://cairographics.org/manual-1.10.2/cairo-Version-Information.html>
and likely still does (though no longer documented in the API reference manual):
<http://cgit.freedesktop.org/cairo/tree/src/cairo-version.c?id=1.12.8>

I can't tell whether there are other utility functions offered by libvisio which would be used instead, other then implementing a more verbose error dialog based on information returned from libvisio when parsing the selected file fails (e.g. because not yet supported by the installed version of libvisio).