summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/annotation_type.xml
blob: d357423affc07d6c0ec1d043d6d1da03887cc5bd (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>

<tests>

<test>
  <commentblock>/**
 * AnnotationObject::list-signal:
 * @annotation: the annotation object
 * @list: (type GLib.List) (element-type utf8) (transfer container): a list of strings
 *
 * This is a signal which takes a list of strings, but it's not
 * known by GObject as it's only marked as G_TYPE_POINTER
 */</commentblock>
  <docblock>
    <identifier>
      <name>AnnotationObject::list-signal</name>
    </identifier>
    <parameters>
      <parameter>
        <name>annotation</name>
        <description>the annotation object</description>
      </parameter>
      <parameter>
        <name>list</name>
        <annotations>
          <annotation>
            <name>type</name>
            <options>
              <option>
                <name>GLib.List</name>
              </option>
            </options>
          </annotation>
          <annotation>
            <name>element-type</name>
            <options>
              <option>
                <name>utf8</name>
              </option>
            </options>
          </annotation>
          <annotation>
            <name>transfer</name>
            <options>
              <option>
                <name>container</name>
              </option>
            </options>
          </annotation>
        </annotations>
        <description>a list of strings</description>
      </parameter>
    </parameters>
    <description>This is a signal which takes a list of strings, but it's not
known by GObject as it's only marked as G_TYPE_POINTER</description>
  </docblock>
</test>

<test>
  <!--
  "Type:" tag syntax
  -->
  <commentblock>/**
   * RegressTestObj:hash-table:
   *
   * Test.
   *
   * Type: GLib.HashTable(utf8,gint8)
   */</commentblock>
  <docblock>
    <identifier>
      <name>RegressTestObj:hash-table</name>
    </identifier>
    <description>Test.</description>
    <tags>
      <tag>
        <name>type</name>
        <description>GLib.HashTable(utf8,gint8)</description>
      </tag>
    </tags>
  </docblock>
</test>

</tests>