summaryrefslogtreecommitdiff
path: root/tests/struct.test
blob: e94a43526c32f50a9beb35637033d94d64966f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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">
    <struct name="FooStruct">
      <field name="foo_int" readable="1" writable="1" offset="0" type="gint" />
      <field name="foo_int64" readable="1" writable="1" offset="4" type="gint64" />
      <field name="foo_uint" readable="1" writable="1" offset="12" type="gint" />
      <field name="foo_uint64" readable="1" writable="1" offset="16" type="gint64" />
      <field name="string" readable="1" writable="1" offset="24" type="utf8" />
    </struct>
    <struct name="FooStruct2">
      <field name="sub" readable="1" writable="1" offset="0" type="FooStruct" />
      <field name="string" readable="1" writable="1" offset="24" type="utf8" />
    </struct>
  </namespace>
</repository>