summaryrefslogtreecommitdiff
path: root/tests/invoke/testfns-1.0.gir
blob: b726d2153a02408076b960759a7e7780bd53d1cf (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0"?>
<repository version="1.1"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <namespace name="testfns" version="1.0">
    <function name="test1" c:identifier="test1">
      <return-value transfer-ownership="none">
        <type name="int" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="in" direction="in" transfer-ownership="none">
          <type name="int" c:type="gint"/>
        </parameter>
      </parameters>
    </function>

    <function name="test2" c:identifier="test2">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="in" c:type="gint" direction="in" transfer-ownership="none">
          <type name="int" c:type="gint"/>
        </parameter>
        <parameter name="out" c:type="gint" direction="out" transfer-ownership="none" caller-allocates="0">
          <type name="int" c:type="gint"/>
        </parameter>
      </parameters>
    </function>

    <function name="test3" c:identifier="test3">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="inout" c:type="gint" direction="inout" transfer-ownership="none">
          <type name="int" c:type="gint"/>
        </parameter>
      </parameters>
    </function>

    <function name="test4" c:identifier="test4">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="blurb" direction="in" transfer-ownership="none">
          <type name="utf8" c:type="gchar*"/>
        </parameter>
      </parameters>
    </function>

    <function name="test5" c:identifier="test5">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="blurb" direction="out" transfer-ownership="full" caller-allocates="0">
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="len" direction="out" transfer-ownership="none" caller-allocates="0">
          <type name="int" c:type="gint"/>
        </parameter>
      </parameters>
    </function>

    <function name="test6" c:identifier="test6">
      <return-value transfer-ownership="none">
        <type name="int" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="list" direction="in" transfer-ownership="none">
          <type name="GLib.List<int>*" c:type="GList*"/>
        </parameter>
      </parameters>
    </function>


    <function name="test7" c:identifier="test7">
      <return-value transfer-ownership="full">
         <type name="utf8" c:type="gchar*"/>
      </return-value>
      <parameters>
        <parameter name="list" direction="in" transfer-ownership="none">
          <type name="GLib.List<utf8>*" c:type="GList*"/>
        </parameter>
      </parameters>
    </function>

    <record name="TestStruct" c:type="TestStruct">
      <constructor name="test8" c:identifier="test8">
        <return-value transfer-ownership="full">
          <type name="TestStruct" c:type="TestStruct*"/>
        </return-value>
        <parameters>
          <parameter name="foo" direction="in" transfer-ownership="full">
            <type name="int" c:type="int"/>
          </parameter>
        </parameters>
      </constructor>
      <method name="test9" c:identifier="test9">
        <return-value transfer-ownership="full">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="out" direction="out" transfer-ownership="full" caller-allocates="0">
            <type name="int" c:type="int*"/>
          </parameter>
        </parameters>
      </method>
    </record>

    <function name="broken" c:identifier="broken">
      <return-value transfer-ownership="none">
         <type name="none" c:type="void"/>
      </return-value>
    </function>

  </namespace>
</repository>