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

<page id="GIRepository.Repository.find_by_gtype"
      type="topic"
      style="method"
      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="GIRepository.Repository" group="method"/>
    <api:function>
      <api:returns>
        <api:type>GIBaseInfo*</api:type>
      </api:returns>
      <api:name>g_irepository_find_by_gtype</api:name>
      <api:arg>
        <api:type>GIRepository *</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>GType</api:type>
        <api:name>gtype</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>g_irepository_find_by_gtype</title>
<synopsis><code mime="text/x-csrc">
GIBaseInfo* g_irepository_find_by_gtype (GIRepository *self,
GType gtype);
</code></synopsis>
<p>Searches all loaded namespaces for a particular <link xref="GType">GType</link>.  Note that
in order to locate the metadata, the namespace corresponding to
the type must first have been loaded.  There is currently no
mechanism for determining the namespace which corresponds to an
arbitrary GType - thus, this function will operate most reliably
when you know the GType to originate from be from a loaded namespace.</p>

<table>
<tr>
<td><p>gtype :</p></td>
<td><p>GType to search for</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
<td><p><link xref="GIBaseInfo">GIBaseInfo</link> representing metadata about @type, or %NULL</p></td>
</tr>
</table>
</page>