summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.require_private.page
blob: 55a6d61d237f3fb389956ba2c14c32eb9a3cc783 (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.Repository.require_private"
      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>GIRepository.Typelib</api:type>
      </api:returns>
      <api:name>g_irepository_require_private</api:name>
      <api:arg>
        <api:type>GIRepository *</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>utf8</api:type>
        <api:name>typelib_dir</api:name>
      </api:arg>
      <api:arg>
        <api:type>utf8</api:type>
        <api:name>namespace_</api:name>
      </api:arg>
      <api:arg>
        <api:type>utf8</api:type>
        <api:name>version</api:name>
      </api:arg>
      <api:arg>
        <api:type>GIRepository.RepositoryLoadFlags</api:type>
        <api:name>flags</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>require_private</title>
<synopsis><code mime="text/x-python">
@accepts(utf8, utf8, utf8, GIRepository.RepositoryLoadFlags)
@returns(GIRepository.Typelib)
def GIRepository.Repository.require_private(typelib_dir, namespace_, version, 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 within the private directory only. In addition, a
version @version of namespace should be specified.  If @version is
not specified, the latest will be used.</p>
</page>