summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/annotation_allow_none.xml
blob: 02db79a90e72ad0cdc00577f68960bd03bf9d535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>

<tests>

<test>
  <commentblock>/**
 * annotation_object_inout:
 * @object: a #GObject
 * @inoutarg: (inout) (allow-none): This is an argument test
 *
 * This is a test for out arguments
 *
 * Return value: an int
 */</commentblock>
  <docblock>
    <identifier>
      <name>annotation_object_inout</name>
    </identifier>
    <parameters>
      <parameter>
        <name>object</name>
        <description>a #GObject</description>
      </parameter>
      <parameter>
        <name>inoutarg</name>
        <annotations>
          <annotation>
            <name>inout</name>
          </annotation>
          <annotation>
            <name>allow-none</name>
          </annotation>
        </annotations>
        <description>This is an argument test</description>
      </parameter>
    </parameters>
    <description>This is a test for out arguments</description>
  <tags>
    <tag>
      <name>returns</name>
      <description>an int</description>
    </tag>
  </tags>
  </docblock>
</test>

</tests>