summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-02-12 12:28:52 -0500
committerDan Winship <danw@gnome.org>2014-02-13 11:24:37 -0500
commit9c4d86ee8064fa36710b8d2d242d9618d4fc763a (patch)
tree810f8c7dffdfcfbd96289da821f31597bbfe8a3b /docs
parent95be722e5411d26a0d631cb6dff1995b85c6940f (diff)
downloadNetworkManager-9c4d86ee8064fa36710b8d2d242d9618d4fc763a.tar.gz
libnm-util, libnm-glib: add versioned deprecation/availability macros
Add versioned NM_DEPRECATED_IN_* and NM_AVAILABLE_IN_* macros, and tag new/deprecated functions accordingly. (All currently-deprecated functions are assumed to have been deprecated in 0.9.10.) Add NM_VERSION_MIN_REQUIRED and NM_VERSION_MAX_ALLOWED macros which can be set to determine which versions will cause warnings. With the current settings, external consumers of the libnm-util/libnm-glib APIs will have MIN_REQUIRED and MAX_ALLOWED both set to NM_VERSION_0_9_8 by default, meaning they will get warnings about functions added in 0.9.10. NM internally sets NM_VERSION_MAX_ALLOWED to NM_VERSION_NEXT_STABLE to ensure that it is always allowed to use all APIs.
Diffstat (limited to 'docs')
-rw-r--r--docs/libnm-glib/Makefile.am1
-rw-r--r--docs/libnm-util/Makefile.am1
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/libnm-glib/Makefile.am b/docs/libnm-glib/Makefile.am
index 84807e25d5..c6c9edf8f4 100644
--- a/docs/libnm-glib/Makefile.am
+++ b/docs/libnm-glib/Makefile.am
@@ -76,6 +76,7 @@ GTKDOC_CFLAGS = \
-I$(top_builddir)/libnm-util \
-I$(top_srcdir)/libnm-glib \
-I$(top_builddir)/libnm-glib \
+ -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
$(GLIB_CFLAGS) \
$(DBUS_CFLAGS)
diff --git a/docs/libnm-util/Makefile.am b/docs/libnm-util/Makefile.am
index 8b8b5aa14e..2e49495393 100644
--- a/docs/libnm-util/Makefile.am
+++ b/docs/libnm-util/Makefile.am
@@ -50,6 +50,7 @@ extra_files =
GTKDOC_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/libnm-util \
+ -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
$(GLIB_CFLAGS) \
$(DBUS_CFLAGS)