summaryrefslogtreecommitdiff
path: root/tests/invoke/testfns.gir
blob: d6cd3340b589007d21ca5d5e9038ad9fdfc1a324 (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
<?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">
    <function name="test1" c:identifier="test1">
      <return-type type="gint"/>
      <parameters>
        <parameter name="in" type="gint" direction="in"/>
      </parameters>
    </function>

    <function name="test2" c:identifier="test2">
      <return-type type="void"/>
      <parameters>
        <parameter name="in" type="gint" direction="in"/>
        <parameter name="out" type="gint" direction="out"/>
      </parameters>
    </function>

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

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

    <function name="test5" c:identifier="test5">
      <return-type type="void"/>
      <parameters>
        <parameter name="blurb" type="gchar*" direction="out" transfer="full"/>
        <parameter name="len" type="gint" direction="out"/>
      </parameters>
    </function>

    <function name="test6" c:identifier="test6">
      <return-type type="gint"/>
      <parameters>
        <parameter name="list" type="GList<gint>*" direction="in"/>
      </parameters>
    </function>


    <function name="test7" c:identifier="test7">
      <return-type type="utf8" transfer="full"/>
      <parameters>
        <parameter name="list" type="GList<utf8>*" direction="in"/>
      </parameters>
    </function>

    <function name="broken" c:identifier="broken">
      <return-type type="void"/>
    </function>

  </namespace>
</repository>