summaryrefslogtreecommitdiff
path: root/tests/invoke/testfns-1.0.gir
blob: 5218fa87c19dd8051aa366da981f1b85e8a9f16c (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
<?xml version="1.0"?>
<repository version="1.0"
            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="test" 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">
          <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">
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="len" direction="out" transfer-ownership="none">
          <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>

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

  </namespace>
</repository>