summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-C-expected/GIRepository.union_info_get_discriminator.page
blob: 9cc0106a8f70204be68aef498bfc85912c925725 (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
<?xml version="1.0"?>

<page id="GIRepository.union_info_get_discriminator"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/experimental/ui/">
  <info>
    <link type="guide" xref="index" group="function"/>
    <api:function>
      <api:returns>
        <api:type>GIConstantInfo*</api:type>
      </api:returns>
      <api:name>g_union_info_get_discriminator</api:name>
      <api:arg>
        <api:type>GIUnionInfo*</api:type>
        <api:name>info</api:name>
      </api:arg>
      <api:arg>
        <api:type>gint</api:type>
        <api:name>n</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>g_union_info_get_discriminator</title>
<synopsis><code mime="text/x-csrc">
GIConstantInfo* g_union_info_get_discriminator (GIUnionInfo* info,
                                                gint n);
</code></synopsis>
<p>Obtain discriminator value assigned for n-th union field, i.e. n-th
union field is the active one if discriminator contains this
constant.</p><p>when done.</p>

<table>
<tr>
<td><p>info :</p></td>
<td><p>a <link xref="GIRepository.UnionInfo">GIRepository.UnionInfo</link></p></td>
</tr>
<tr>
<td><p>n :</p></td>
<td><p>a union field index</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
<td><p>the <link xref="GIRepository.ConstantInfo">GIRepository.ConstantInfo</link>, free it with g_base_info_unref()</p></td>
</tr>
</table>
</page>