summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-C-expected
diff options
context:
space:
mode:
authorBen Iofel <iofelben@gmail.com>2015-09-25 15:11:17 -0400
committerColin Walters <walters@verbum.org>2015-10-19 18:00:58 -0400
commitd9a6824b2dd373f7bd3d3b3f434d2fe7069eaa51 (patch)
treee14a47b2f213a3d363cb313f8921da2281ccbf2d /tests/scanner/Regress-1.0-C-expected
parent5341da3520ef513e5a7c49e2d8737bb3f2341a3d (diff)
downloadgobject-introspection-d9a6824b2dd373f7bd3d3b3f434d2fe7069eaa51.tar.gz
Add support for function typedefs without pointer
g-ir-scanner now supports something like this: typedef void my_callback(int); Notice how my_callback is not a pointer. https://bugzilla.gnome.org/show_bug.cgi?id=755645
Diffstat (limited to 'tests/scanner/Regress-1.0-C-expected')
-rw-r--r--tests/scanner/Regress-1.0-C-expected/Regress.TestNoPtrCallback.page24
-rw-r--r--tests/scanner/Regress-1.0-C-expected/Regress.test_noptr_callback.page38
2 files changed, 62 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.TestNoPtrCallback.page b/tests/scanner/Regress-1.0-C-expected/Regress.TestNoPtrCallback.page
new file mode 100644
index 00000000..02140c29
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.TestNoPtrCallback.page
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<page id="Regress.TestNoPtrCallback"
+ type="topic"
+ style="callback"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="index" group="callback" type="guide"/>
+ </info>
+ <title>Regress.TestNoPtrCallback</title>
+ <synopsis><code mime="text/x-csrc">
+void TestNoPtrCallback (void);
+ </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.test_noptr_callback.page b/tests/scanner/Regress-1.0-C-expected/Regress.test_noptr_callback.page
new file mode 100644
index 00000000..c760265d
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.test_noptr_callback.page
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<page id="Regress.test_noptr_callback"
+ type="topic"
+ style="function"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="index" group="function" type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>void</api:type>
+ </api:returns>
+ <api:name>regress_test_noptr_callback</api:name>
+ <api:arg>
+ <api:type>RegressTestNoPtrCallback</api:type>
+ <api:name>callback</api:name>
+ </api:arg>
+ </api:function>
+ </info>
+ <title>regress_test_noptr_callback</title>
+ <synopsis><code mime="text/x-csrc">
+void regress_test_noptr_callback (RegressTestNoPtrCallback callback);
+ </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>callback</code></title>
+
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>