gdbus-codegen: Take into consideration MAX_ALLOWED for private data

The G_ADD_PRIVATE() macro, and the auto-generated get_instance_private()
internal function, should be used conditionally depending on the maximum
allowed version of GLib, as defined by the GLIB_VERSION_MAX_ALLOWED
pre-processor symbol.

This allows generating code that can be compiled in projects that wish
to use an older API version of GLib through the use of the
GLIB_VERSION_MAX_ALLOWED symbol.

https://bugzilla.gnome.org/show_bug.cgi?id=710133
This commit is contained in:
Emmanuele Bassi
2013-10-14 19:30:21 +01:00
committed by Colin Walters
parent 066df98849
commit 1b08980b48
3 changed files with 32 additions and 4 deletions

View File

@@ -67,6 +67,7 @@ gdbus-proxy-well-known-name
gdbus-serialization
gdbus-test-codegen
gdbus-test-codegen-generated*
gdbus-test-codegen-old
gdbus-test-fixture
gdbus-testserver
gdbus-threading