% endif
@returns(${formatter.format_type(node.retval.type) | x})
def \
-% if node.parent is not None:
-${namespace.name}.${node.parent.name}.\
-% endif
${node.name}(\
% for arg, ix in zip(node.parameters, range(len(node.parameters))):
${arg.argname}\
<synopsis><code mime="text/x-python">
@accepts(GIRepository.BaseInfo)
@returns(gboolean)
-def GIRepository.BaseInfo.equal(info2)
+def equal(info2)
</code></synopsis>
<p>Compare two <link xref="GIBaseInfo">GIBaseInfo</link>.</p><p>Using pointer comparison is not practical since many functions return
different instances of <link xref="GIBaseInfo">GIBaseInfo</link> that refers to the same part of the
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(utf8)
-def GIRepository.BaseInfo.get_attribute(name)
+def get_attribute(name)
</code></synopsis>
<p>Retrieve an arbitrary attribute associated with this node.</p>
<title>get_container</title>
<synopsis><code mime="text/x-python">
@returns(GIRepository.BaseInfo)
-def GIRepository.BaseInfo.get_container()
+def get_container()
</code></synopsis>
<p>Obtain the container of the @info. The container is the parent
GIBaseInfo. For instance, the parent of a <link xref="GIFunctionInfo">GIFunctionInfo</link> is an
<title>get_name</title>
<synopsis><code mime="text/x-python">
@returns(utf8)
-def GIRepository.BaseInfo.get_name()
+def get_name()
</code></synopsis>
<p>Obtain the name of the @info. What the name represents depends on
the <link xref="GIInfoType">GIInfoType</link> of the @info. For instance for <link xref="GIFunctionInfo">GIFunctionInfo</link> it is
<title>get_namespace</title>
<synopsis><code mime="text/x-python">
@returns(utf8)
-def GIRepository.BaseInfo.get_namespace()
+def get_namespace()
</code></synopsis>
<p>Obtain the namespace of @info.</p>
<title>get_typelib</title>
<synopsis><code mime="text/x-python">
@returns(GIRepository.Typelib)
-def GIRepository.BaseInfo.get_typelib()
+def get_typelib()
</code></synopsis>
<p>Obtain the typelib this @info belongs to</p>
<title>is_deprecated</title>
<synopsis><code mime="text/x-python">
@returns(gboolean)
-def GIRepository.BaseInfo.is_deprecated()
+def is_deprecated()
</code></synopsis>
<p>Obtain whether the @info is represents a metadata which is
deprecated or not.</p>
<synopsis><code mime="text/x-python">
@accepts(GIRepository.AttributeIter, utf8, utf8)
@returns(gboolean)
-def GIRepository.BaseInfo.iterate_attributes(iterator, name, value)
+def iterate_attributes(iterator, name, value)
</code></synopsis>
<p>Iterate over all attributes associated with this node. The iterator
structure is typically stack allocated, and must have its first
<title>ref</title>
<synopsis><code mime="text/x-python">
@returns(GIRepository.BaseInfo)
-def GIRepository.BaseInfo.ref()
+def ref()
</code></synopsis>
<p>Increases the reference count of @info.</p>
<title>unref</title>
<synopsis><code mime="text/x-python">
@returns(none)
-def GIRepository.BaseInfo.unref()
+def unref()
</code></synopsis>
<p>Decreases the reference count of @info. When its reference count
drops to 0, the info is freed.</p>
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(gboolean)
-def GIRepository.Repository.dump(arg)
+def dump(arg)
</code></synopsis>
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(<list>)
-def GIRepository.Repository.enumerate_versions(namespace_)
+def enumerate_versions(namespace_)
</code></synopsis>
<p>Obtain an unordered list of versions (either currently loaded or
available) for @namespace_ in this @repository.</p>
<title>error_quark</title>
<synopsis><code mime="text/x-python">
@returns(GLib.Quark)
-def GIRepository.Repository.error_quark()
+def error_quark()
</code></synopsis>
<synopsis><code mime="text/x-python">
@accepts(GLib.Quark)
@returns(GIRepository.EnumInfo)
-def GIRepository.Repository.find_by_error_domain(domain)
+def find_by_error_domain(domain)
</code></synopsis>
<p>Searches for the enum type corresponding to the given <link xref="GError">GError</link>
domain. Before calling this function for a particular namespace,
<synopsis><code mime="text/x-python">
@accepts(GType)
@returns(GIRepository.BaseInfo)
-def GIRepository.Repository.find_by_gtype(gtype)
+def find_by_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
<synopsis><code mime="text/x-python">
@accepts(utf8, utf8)
@returns(GIRepository.BaseInfo)
-def GIRepository.Repository.find_by_name(namespace_, name)
+def find_by_name(namespace_, name)
</code></synopsis>
<p>Searches for a particular entry in a namespace. Before calling
this function for a particular namespace, you must call
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(utf8)
-def GIRepository.Repository.get_c_prefix(namespace_)
+def get_c_prefix(namespace_)
</code></synopsis>
<p>This function returns the "C prefix", or the C level namespace
associated with the given introspection namespace. Each C symbol
<title>get_default</title>
<synopsis><code mime="text/x-python">
@returns(GIRepository.Repository)
-def GIRepository.Repository.get_default()
+def get_default()
</code></synopsis>
<p>Returns the singleton process-global default <link xref="GIRepository">GIRepository</link>. It is
not currently supported to have multiple repositories in a
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns([utf8])
-def GIRepository.Repository.get_dependencies(namespace_)
+def get_dependencies(namespace_)
</code></synopsis>
<p>Return an array of all (transitive) dependencies for namespace
@namespace_, including version. The returned strings are of the
<synopsis><code mime="text/x-python">
@accepts(utf8, gint)
@returns(GIRepository.BaseInfo)
-def GIRepository.Repository.get_info(namespace_, index)
+def get_info(namespace_, index)
</code></synopsis>
<p>This function returns a particular metadata entry in the
given namespace @namespace_. The namespace must have
<title>get_loaded_namespaces</title>
<synopsis><code mime="text/x-python">
@returns([utf8])
-def GIRepository.Repository.get_loaded_namespaces()
+def get_loaded_namespaces()
</code></synopsis>
<p>Return the list of currently loaded namespaces.</p>
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(gint)
-def GIRepository.Repository.get_n_infos(namespace_)
+def get_n_infos(namespace_)
</code></synopsis>
<p>This function returns the number of metadata entries in
given namespace @namespace_. The namespace must have
<title>get_option_group</title>
<synopsis><code mime="text/x-python">
@returns(GLib.OptionGroup)
-def GIRepository.Repository.get_option_group()
+def get_option_group()
</code></synopsis>
<p>Obtain the option group for girepository, it's used
by the dumper and for programs that wants to provide
<title>get_search_path</title>
<synopsis><code mime="text/x-python">
@returns(<list>)
-def GIRepository.Repository.get_search_path()
+def get_search_path()
</code></synopsis>
<p>Returns the search path the GIRepository will use when looking for typelibs.
The string is internal to GIRespository and should not be freed, nor should
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(utf8)
-def GIRepository.Repository.get_shared_library(namespace_)
+def get_shared_library(namespace_)
</code></synopsis>
<p>This function returns the full path to the shared C library
associated with the given namespace @namespace_. There may be no
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(utf8)
-def GIRepository.Repository.get_typelib_path(namespace_)
+def get_typelib_path(namespace_)
</code></synopsis>
<p>If namespace @namespace_ is loaded, return the full path to the
.typelib file it was loaded from. If the typelib for
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(utf8)
-def GIRepository.Repository.get_version(namespace_)
+def get_version(namespace_)
</code></synopsis>
<p>This function returns the loaded version associated with the given
namespace @namespace_.</p><p>Note: The namespace must have already been loaded using a function
<synopsis><code mime="text/x-python">
@accepts(utf8, utf8)
@returns(gboolean)
-def GIRepository.Repository.is_registered(namespace_, version)
+def 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
<synopsis><code mime="text/x-python">
@accepts(GIRepository.Typelib, GIRepository.RepositoryLoadFlags)
@returns(utf8)
-def GIRepository.Repository.load_typelib(typelib, flags)
+def load_typelib(typelib, flags)
</code></synopsis>
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(none)
-def GIRepository.Repository.prepend_search_path(directory)
+def prepend_search_path(directory)
</code></synopsis>
<synopsis><code mime="text/x-python">
@accepts(utf8, utf8, GIRepository.RepositoryLoadFlags)
@returns(GIRepository.Typelib)
-def GIRepository.Repository.require(namespace_, version, flags)
+def require(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
<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)
+def 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