Make QtDBus work again with D-Bus 1.0 and 1.1
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 18 Oct 2012 23:27:35 +0000 (16:27 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 19 Oct 2012 00:43:05 +0000 (02:43 +0200)
commit0510fc149e0c6b955ee9b93917e72ee378369197
tree9bc6a7e57a477db79efc3bcf1123881ebb1d6c09
parent221bd941ff255947ce7c78d08b1f9705e3d437be
Make QtDBus work again with D-Bus 1.0 and 1.1

The dbus_get_version function was introduced in 1.2, so we'd need to
detect pre-1.2 by the absence of the function. But if we're going to
detect the presence or absence of any function, we might as well do it
on dbus_connection_can_send_type, which is the function we wanted anyway.

Change-Id: I6e17a3a8f1382c6a489490084f6e3f61aa5a1947
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
src/dbus/qdbus_symbols_p.h
src/dbus/qdbusintegrator.cpp