summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2012-07-10 13:59:23 -0700
committerEvan Nemerson <evan@coeus-group.com>2012-07-10 14:52:25 -0700
commit368d72e61740cb318647296ff39495ad32fbe4d3 (patch)
tree0f3feae12f141aebad406ec077f8a068276124e2 /tests
parentf77cfc4275b1fba4f9fedea6e40b00e0ebbe142c (diff)
downloadgobject-introspection-368d72e61740cb318647296ff39495ad32fbe4d3.tar.gz
scanner: support stability tag
https://bugzilla.gnome.org/show_bug.cgi?id=679160
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Regress-1.0-expected.gir10
-rw-r--r--tests/scanner/regress.c12
-rw-r--r--tests/scanner/regress.h3
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 631dd98e..e5d8b5a7 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -3482,5 +3482,15 @@ What we're testing here is that the scanner ignores the @a nested inside XML.</d
</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>
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 6ba2bdf1..1f58d196 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -3812,3 +3812,15 @@ regress_has_parameter_named_attrs (int foo,
gpointer attributes)
{
}
+
+/**
+ * regress_test_versioning:
+ *
+ * Since: 1.32.1
+ * Deprecated: 1.33.3: Use foobar instead
+ * Stability: Unstable
+ */
+void
+regress_test_versioning ()
+{
+}
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index fd937cdd..112d9351 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -137,6 +137,9 @@ cairo_surface_t *regress_test_cairo_surface_full_return (void);
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);