if node.deprecated_version:
attrs.append(('deprecated-version',
node.deprecated_version))
+ if node.stability:
+ attrs.append(('stability', node.stability))
def _append_throws(self, func, attrs):
if func.throws:
from .annotationparser import (TAG_VFUNC, TAG_SINCE, TAG_DEPRECATED, TAG_RETURNS,
TAG_ATTRIBUTES, TAG_RENAME_TO, TAG_TYPE,
TAG_UNREF_FUNC, TAG_REF_FUNC, TAG_SET_VALUE_FUNC,
- TAG_GET_VALUE_FUNC, TAG_VALUE, TAG_TRANSFER)
+ TAG_GET_VALUE_FUNC, TAG_VALUE, TAG_TRANSFER,
+ TAG_STABILITY)
from .annotationparser import (OPT_ALLOW_NONE, OPT_ARRAY, OPT_ATTRIBUTE,
OPT_ELEMENT_TYPE, OPT_IN, OPT_INOUT,
OPT_INOUT_ALT, OPT_OUT, OPT_SCOPE,
if version is not None:
node.deprecated_version = version
+ stability_tag = block.get_tag(TAG_STABILITY)
+ if stability_tag is not None:
+ stability = stability_tag.value.capitalize()
+ if stability in ["Stable", "Unstable", "Private", "Internal"]:
+ node.stability = stability
+ else:
+ message.warn('unknown value "%s" for Stability tag' % (
+ stability_tag.value), stability_tag.position)
+
annos_tag = block.get_tag(TAG_ATTRIBUTES)
if annos_tag is not None:
for key, value in annos_tag.options.iteritems():
</parameter>
</parameters>
</function>
+ <function name="test_versioning"
+ c:identifier="regress_test_versioning"
+ version="1.32.1"
+ deprecated="Use foobar instead"
+ deprecated-version="1.33.3"
+ stability="Unstable">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ </function>
</namespace>
</repository>
void regress_test_cairo_surface_none_in (cairo_surface_t *surface);
void regress_test_cairo_surface_full_out (cairo_surface_t **surface);
+/* versioning (deprecated, since, stability) */
+void regress_test_versioning ();
+
GVariant *regress_test_gvariant_i (void);
GVariant *regress_test_gvariant_s (void);
GVariant *regress_test_gvariant_asv (void);