On Tue, Jul 12, 2011 at 7:26 AM, Roman Rakus <rrakus(a)redhat.com> wrote:
Since polkit 0.97 is polkit_authority_get_type_sync available. For
older
versions we need to use polkit_authority_get_type function.
Use check for version.
I prefer doing a feature check instead of a version check. To expand
upon my reasoning, the feature check will always work while the
version number may not. The version check can be problematic if some
distro decides to backport a major patch that changes the API into the
version you're checking for.
--
Russell Bryant