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

<page id="GIRepository.Repository.require"
      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>GITypelib*</api:type>
      </api:returns>
      <api:name>g_irepository_require</api:name>
      <api:arg>
        <api:type>GIRepository *</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>gchar*</api:type>
        <api:name>namespace_</api:name>
      </api:arg>
      <api:arg>
        <api:type>gchar*</api:type>
        <api:name>version</api:name>
      </api:arg>
      <api:arg>
        <api:type>GIRepositoryLoadFlags</api:type>
        <api:name>flags</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>g_irepository_require</title>
<synopsis><code mime="text/x-csrc">
GITypelib* g_irepository_require (GIRepository *self,
gchar* namespace_,
                                  gchar* version,
                                  GIRepositoryLoadFlags flags);
</code></synopsis>
<p>Force the namespace @namespace_ to be loaded if it isn't already.
If @namespace_ is not loaded, this function will search for a
".typelib" file using the repository search path.  In addition, a
version @version of namespace may be specified.  If @version is
not specified, the latest will be used.</p>

<table>
<tr>
<td><p>namespace_ :</p></td>
<td><p>GI namespace to use, e.g. "Gtk"</p></td>
</tr>
<tr>
<td><p>version :</p></td>
<td><p>Version of namespace, may be %NULL for latest</p></td>
</tr>
<tr>
<td><p>flags :</p></td>
<td><p>Set of %GIRepositoryLoadFlags, may be 0</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
<td><p>a pointer to the <link xref="GITypelib">GITypelib</link> if successful, %NULL otherwise</p></td>
</tr>
</table>
</page>