Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/interface.gir
blob: 4182a61cc8a7438ffaf44ddabf77e60519237893 (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
<?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="Foo" version="1.0">
    <interface name="Iface1" glib:type-name="Iface1" glib:get-type="iface1_get_type">
      <requires>
        <interface name="Iface2" />
      </requires>
      <method name="method1" symbol="method1">
        <return-value transfer="full">
          <type name="Iface2"/>
        </return-value>
        <parameters>
          <parameter name="param1" transfer="full" direction="in">
            <type name="Iface2"/>
          </parameter>
        </parameters>
      </method>
      <property name="prop1" readable="0" writable="0">
        <type name="int"/>
      </property>
      <glib:signal name="signal1" when="LAST">
        <return-value transfer="full">
          <type name="boolean"/>
        </return-value>
        <parameters>
          <parameter name="obj" transfer="full" direction="in">
            <type name="Iface2"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="signal2" when="FIRST" no-recurse="1" detailed="1" action="1" no-hooks="1">
        <return-value transfer="full">
          <type name="none"/>
        </return-value>
        <parameters>
          <parameter name="obj" transfer="full" direction="in">
            <type name="Iface1"/>
          </parameter>
        </parameters>
      </glib:signal>
      <vfunc name="vfunc1" offset="10">
        <return-value transfer="full">
          <type name="Iface2"/>
        </return-value>
        <parameters>
          <parameter name="param1" transfer="full" direction="in">
            <type name="Iface2"/>
          </parameter>
        </parameters>
      </vfunc>
      <constant name="constant1" value="42">
        <type name="gint"/>
      </constant>
    </interface>
    <interface name="Iface2" glib:type-name="Iface2" glib:get-type="iface2_get_type">
    </interface>
  </namespace>
</repository>