Daniel P. Berrangé f08d5dada4 util: introduce compile time API version checking
GLib header files annotate every API with a version number.

It is possible to define some constants before including
glib.h which will result in useful compile time warnings.

Setting GLIB_VERSION_MIN_REQUIRED will result in a warning
if libvirt uses an API that was deprecated in the declared
version, or before. Such API usage should be rewritten to
use the documented new replacement API.

Setting GLIB_VERSION_MAX_ALLOWED will result in a warning
if libvirt uses an API that was not introduced until a
version of GLib that's newer than our minimum declared
version. This avoids accidentally using functionality
that is not available on some supported platforms.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-01-07 14:42:26 +00:00
..
2020-01-03 15:42:12 +00:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-11-15 12:58:00 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-11-12 17:54:01 +01:00
2019-11-15 12:58:00 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:43 +02:00
2019-10-15 11:25:25 +02:00
2019-12-12 14:24:35 +01:00
2019-12-12 14:24:35 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-10-15 11:25:25 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-11-12 17:54:01 +01:00
2019-12-17 10:04:43 +01:00
2019-10-16 12:06:44 +02:00
2019-10-15 11:25:25 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-12-12 14:24:35 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-12-20 17:02:40 -05:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-10-15 11:25:25 +02:00