blob: 4d0eb9ccc7ad8cb4bd892da10c1ecae17ea853fd (
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
|
<?xml version="1.0"?>
<page id="GIRepository.Repository.is_registered"
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>gboolean</api:type>
</api:returns>
<api:name>g_irepository_is_registered</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>namespace_</api:name>
</api:arg>
<api:arg>
<api:type>utf8</api:type>
<api:name>version</api:name>
</api:arg>
</api:function>
</info>
<title>is_registered</title>
<synopsis><code mime="text/x-python">
@accepts(utf8, utf8)
@returns(gboolean)
def GIRepository.Repository.is_registered(namespace_, version)
</code></synopsis>
<p>Check whether a particular namespace (and optionally, a specific
version thereof) is currently loaded. This function is likely to
only be useful in unusual circumstances; in order to act upon
metadata in the namespace, you should call g_irepository_require()
instead which will ensure the namespace is loaded, and return as
quickly as this function will if it has already been loaded.</p>
<table>
<tr>
<td><p>namespace_ :</p></td>
<td><p>Namespace of interest</p></td>
</tr>
<tr>
<td><p>version :</p></td>
<td><p>Required version, may be %NULL for latest</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
<td><p>%TRUE if namespace-version is loaded, %FALSE otherwise</p></td>
</tr>
</table>
</page>
|