public static int negotiate_interfaces (int min_host_interface, int max_host_interface, int plugin_interface)

A utility function for checking host interfaces against one's own and returning the right value.

Note that this only works if the caller operates on only one interface version (and cannot mutate between multiple ones).


min_host_interface The minimum supported host interface version.
max_host_interface The maximum supported host interface version.
plugin_interface The interface version supported by the Pluggable.


The plugin's interface version if supported, UNSUPPORTED_INTERFACE otherwise.

Namespace: Spit
Package: shotwell-plugin-dev