[gobject-introspection/gir-docbook] g-ir-doc-tool: Move the * out the type link
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/gir-docbook] g-ir-doc-tool: Move the * out the type link
- Date: Sat, 13 Aug 2011 08:44:27 +0000 (UTC)
commit d875680ac9a33588c68a893ace0f82eeff99b2e8
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date: Sat Aug 13 10:43:39 2011 +0200
g-ir-doc-tool: Move the * out the type link
giscanner/docbookwriter.py | 8 +-
tests/doctool/GIRepository-2.0-expected.xml | 212 +++++++++++++-------------
2 files changed, 112 insertions(+), 108 deletions(-)
---
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py
index d391076..41c6f16 100644
--- a/giscanner/docbookwriter.py
+++ b/giscanner/docbookwriter.py
@@ -58,7 +58,7 @@ class DocBookFormatter(object):
else:
link_dest = param.type.ctype
with self._writer.tagcontext("link", [("linkend", "%s" % link_dest)]):
- self._writer.write_tag("type", [], self.get_type_string(param.type))
+ self._writer.write_tag("type", [], link_dest)
self._writer.write_line(extra_content)
def _render_parameters(self, parent, parameters):
@@ -82,7 +82,11 @@ class DocBookFormatter(object):
comma = ", "
else:
comma = ""
- extra_content = " %s%s" % (param.argname, comma)
+ extra_content = " "
+ if '*' in param.type.ctype:
+ extra_content += '*'
+ extra_content += param.argname
+ extra_content += comma
self._render_parameter(param, extra_content)
self._writer.write_line(");\n")
diff --git a/tests/doctool/GIRepository-2.0-expected.xml b/tests/doctool/GIRepository-2.0-expected.xml
index 08e140e..dbffa35 100644
--- a/tests/doctool/GIRepository-2.0-expected.xml
+++ b/tests/doctool/GIRepository-2.0-expected.xml
@@ -23,21 +23,21 @@
<refsynopsisdiv id="GIBaseInfo.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>
<synopsis>
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="equal-details">g_base_info_equal</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo, </parameter>
- <parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> info2</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_attribute-details">g_base_info_get_attribute</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> name</parameter>);
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="get_container-details">g_base_info_get_container</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_name-details">g_base_info_get_name</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_namespace-details">g_base_info_get_namespace</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
-<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> <link linkend="get_typelib-details">g_base_info_get_typelib</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="is_deprecated-details">g_base_info_is_deprecated</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="iterate_attributes-details">g_base_info_iterate_attributes</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo, </parameter>
- <parameter><link linkend="GIAttributeIter"><type>GIAttributeIter*</type></link> iterator, </parameter>
- <parameter><link linkend="char"><type>char**</type></link> name, </parameter>
- <parameter><link linkend="char"><type>char**</type></link> value</parameter>);
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="ref-details">g_base_info_ref</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
-<link linkend="void"><returnvalue>void</returnvalue></link> <link linkend="unref-details">g_base_info_unref</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="equal-details">g_base_info_equal</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo, </parameter>
+ <parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *info2</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_attribute-details">g_base_info_get_attribute</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="get_container-details">g_base_info_get_container</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_name-details">g_base_info_get_name</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_namespace-details">g_base_info_get_namespace</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
+<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> <link linkend="get_typelib-details">g_base_info_get_typelib</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="is_deprecated-details">g_base_info_is_deprecated</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="iterate_attributes-details">g_base_info_iterate_attributes</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo, </parameter>
+ <parameter><link linkend="GIAttributeIter"><type>GIAttributeIter</type></link> *iterator, </parameter>
+ <parameter><link linkend="char"><type>char</type></link> *name, </parameter>
+ <parameter><link linkend="char"><type>char</type></link> *value</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="ref-details">g_base_info_ref</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link> <link linkend="unref-details">g_base_info_unref</link> (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="GIBaseInfo-details" role="details">
@@ -48,8 +48,8 @@
<primary>equal</primary>
</indexterm>
<programlisting>
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_base_info_equal (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo, </parameter>
- <parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> info2</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_base_info_equal (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo, </parameter>
+ <parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *info2</parameter>);
</programlisting>
<para>Compare two #GIBaseInfo.
Using pointer comparison is not practical since many functions return
@@ -91,8 +91,8 @@ TypeLib; use this function instead to do #GIBaseInfo comparisons.</para>
<primary>get_attribute</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_base_info_get_attribute (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> name</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_base_info_get_attribute (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);
</programlisting>
<para>Retrieve an arbitrary attribute associated with this node.</para>
<variablelist role="params">
@@ -131,7 +131,7 @@ TypeLib; use this function instead to do #GIBaseInfo comparisons.</para>
<primary>get_container</primary>
</indexterm>
<programlisting>
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_base_info_get_container (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_base_info_get_container (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Obtain the container of the @info. The container is the parent
GIBaseInfo. For instance, the parent of a #GIFunctionInfo is an
@@ -163,7 +163,7 @@ GIBaseInfo. For instance, the parent of a #GIFunctionInfo is an
<primary>get_name</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_base_info_get_name (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_base_info_get_name (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Obtain the name of the @info. What the name represents depends on
the #GIInfoType of the @info. For instance for #GIFunctionInfo it is
@@ -195,7 +195,7 @@ the name of the function.</para>
<primary>get_namespace</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_base_info_get_namespace (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_base_info_get_namespace (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Obtain the namespace of @info.</para>
<variablelist role="params">
@@ -225,7 +225,7 @@ the name of the function.</para>
<primary>get_typelib</primary>
</indexterm>
<programlisting>
-<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> g_base_info_get_typelib (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> g_base_info_get_typelib (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Obtain the typelib this @info belongs to</para>
<variablelist role="params">
@@ -255,7 +255,7 @@ the name of the function.</para>
<primary>is_deprecated</primary>
</indexterm>
<programlisting>
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_base_info_is_deprecated (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_base_info_is_deprecated (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Obtain whether the @info is represents a metadata which is
deprecated or not.</para>
@@ -286,10 +286,10 @@ deprecated or not.</para>
<primary>iterate_attributes</primary>
</indexterm>
<programlisting>
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_base_info_iterate_attributes (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo, </parameter>
- <parameter><link linkend="GIAttributeIter"><type>GIAttributeIter*</type></link> iterator, </parameter>
- <parameter><link linkend="char"><type>char**</type></link> name, </parameter>
- <parameter><link linkend="char"><type>char**</type></link> value</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_base_info_iterate_attributes (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo, </parameter>
+ <parameter><link linkend="GIAttributeIter"><type>GIAttributeIter</type></link> *iterator, </parameter>
+ <parameter><link linkend="char"><type>char</type></link> *name, </parameter>
+ <parameter><link linkend="char"><type>char</type></link> *value</parameter>);
</programlisting>
<para>Iterate over all attributes associated with this node. The iterator
structure is typically stack allocated, and must have its first
@@ -365,7 +365,7 @@ while (g_base_info_iterate_attributes (info, &iter, &name, &value))
<primary>ref</primary>
</indexterm>
<programlisting>
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_base_info_ref (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_base_info_ref (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Increases the reference count of @info.</para>
<variablelist role="params">
@@ -397,7 +397,7 @@ while (g_base_info_iterate_attributes (info, &iter, &name, &value))
<primary>unref</primary>
</indexterm>
<programlisting>
-<link linkend="void"><returnvalue>void</returnvalue></link> g_base_info_unref (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo*</type></link> baseinfo</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link> g_base_info_unref (<parameter><link linkend="GIBaseInfo"><type>GIBaseInfo</type></link> *baseinfo</parameter>);
</programlisting>
<para>Decreases the reference count of @info. When its reference count
drops to 0, the info is freed.</para>
@@ -425,43 +425,43 @@ drops to 0, the info is freed.</para>
<refsynopsisdiv id="GIRepository.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>
<synopsis>
-<link linkend="GList"><returnvalue>GList*</returnvalue></link> <link linkend="enumerate_versions-details">g_irepository_enumerate_versions</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="find_by_gtype-details">g_irepository_find_by_gtype</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
+<link linkend="GList"><returnvalue>GList*</returnvalue></link> <link linkend="enumerate_versions-details">g_irepository_enumerate_versions</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="find_by_gtype-details">g_irepository_find_by_gtype</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
<parameter><link linkend="GType"><type>GType</type></link> gtype</parameter>);
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="find_by_name-details">g_irepository_find_by_name</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> name</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_c_prefix-details">g_irepository_get_c_prefix</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> <link linkend="get_dependencies-details">g_irepository_get_dependencies</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="get_info-details">g_irepository_get_info</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="find_by_name-details">g_irepository_find_by_name</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_c_prefix-details">g_irepository_get_c_prefix</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> <link linkend="get_dependencies-details">g_irepository_get_dependencies</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> <link linkend="get_info-details">g_irepository_get_info</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
<parameter><link linkend="gint"><type>gint</type></link> index</parameter>);
-<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> <link linkend="get_loaded_namespaces-details">g_irepository_get_loaded_namespaces</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository</parameter>);
-<link linkend="gint"><returnvalue>gint</returnvalue></link> <link linkend="get_n_infos-details">g_irepository_get_n_infos</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_shared_library-details">g_irepository_get_shared_library</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_typelib_path-details">g_irepository_get_typelib_path</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_version-details">g_irepository_get_version</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="is_registered-details">g_irepository_is_registered</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> version</parameter>);
-<link linkend="char"><returnvalue>char*</returnvalue></link> <link linkend="load_typelib-details">g_irepository_load_typelib</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib, </parameter>
+<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> <link linkend="get_loaded_namespaces-details">g_irepository_get_loaded_namespaces</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link> <link linkend="get_n_infos-details">g_irepository_get_n_infos</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_shared_library-details">g_irepository_get_shared_library</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_typelib_path-details">g_irepository_get_typelib_path</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_version-details">g_irepository_get_version</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="is_registered-details">g_irepository_is_registered</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>);
+<link linkend="char"><returnvalue>char*</returnvalue></link> <link linkend="load_typelib-details">g_irepository_load_typelib</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib, </parameter>
<parameter><link linkend="GIRepositoryLoadFlags"><type>GIRepositoryLoadFlags</type></link> flags</parameter>);
-<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> <link linkend="require-details">g_irepository_require</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> version, </parameter>
+<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> <link linkend="require-details">g_irepository_require</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *version, </parameter>
<parameter><link linkend="GIRepositoryLoadFlags"><type>GIRepositoryLoadFlags</type></link> flags</parameter>);
-<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> <link linkend="require_private-details">g_irepository_require_private</link> (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> typelib_dir, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> version, </parameter>
+<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> <link linkend="require_private-details">g_irepository_require_private</link> (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *typelib_dir, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *version, </parameter>
<parameter><link linkend="GIRepositoryLoadFlags"><type>GIRepositoryLoadFlags</type></link> flags</parameter>);
</synopsis>
</refsynopsisdiv>
@@ -479,8 +479,8 @@ drops to 0, the info is freed.</para>
<primary>enumerate_versions</primary>
</indexterm>
<programlisting>
-<link linkend="GList"><returnvalue>GList*</returnvalue></link> g_irepository_enumerate_versions (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="GList"><returnvalue>GList*</returnvalue></link> g_irepository_enumerate_versions (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>Obtain an unordered list of versions (either currently loaded or
available) for @namespace_ in this @repository.</para>
@@ -522,7 +522,7 @@ available) for @namespace_ in this @repository.</para>
<primary>find_by_gtype</primary>
</indexterm>
<programlisting>
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_irepository_find_by_gtype (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_irepository_find_by_gtype (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
<parameter><link linkend="GType"><type>GType</type></link> gtype</parameter>);
</programlisting>
<para>Searches all loaded namespaces for a particular #GType. Note that
@@ -569,9 +569,9 @@ when you know the GType to originate from be from a loaded namespace.</para>
<primary>find_by_name</primary>
</indexterm>
<programlisting>
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_irepository_find_by_name (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> name</parameter>);
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_irepository_find_by_name (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);
</programlisting>
<para>Searches for a particular entry in a namespace. Before calling
this function for a particular namespace, you must call
@@ -624,8 +624,8 @@ ensure the namespace has already been loaded.</para>
<primary>get_c_prefix</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_c_prefix (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_c_prefix (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>This function returns the "C prefix", or the C level namespace
associated with the given introspection namespace. Each C symbol
@@ -667,8 +667,8 @@ such as #g_irepository_require before calling this function.</para>
<primary>get_dependencies</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> g_irepository_get_dependencies (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> g_irepository_get_dependencies (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>Return an array of all (transitive) dependencies for namespace
form <code>namespace-version</code>.
@@ -711,8 +711,8 @@ such as #g_irepository_require before calling this function.</para>
<primary>get_info</primary>
</indexterm>
<programlisting>
-<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_irepository_get_info (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
+<link linkend="GIBaseInfo"><returnvalue>GIBaseInfo*</returnvalue></link> g_irepository_get_info (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
<parameter><link linkend="gint"><type>gint</type></link> index</parameter>);
</programlisting>
<para>This function returns a particular metadata entry in the
@@ -767,7 +767,7 @@ entries.</para>
<primary>get_loaded_namespaces</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> g_irepository_get_loaded_namespaces (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository</parameter>);
+<link linkend="gchar"><returnvalue>gchar**</returnvalue></link> g_irepository_get_loaded_namespaces (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository</parameter>);
</programlisting>
<para>Return the list of currently loaded namespaces.</para>
<variablelist role="params">
@@ -799,8 +799,8 @@ entries.</para>
<primary>get_n_infos</primary>
</indexterm>
<programlisting>
-<link linkend="gint"><returnvalue>gint</returnvalue></link> g_irepository_get_n_infos (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link> g_irepository_get_n_infos (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>This function returns the number of metadata entries in
given namespace @namespace_. The namespace must have
@@ -841,8 +841,8 @@ already been loaded before calling this function.</para>
<primary>get_shared_library</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_shared_library (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_shared_library (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>This function returns the full path to the shared C library
associated with the given namespace @namespace_. There may be no
@@ -885,8 +885,8 @@ such as #g_irepository_require before calling this function.</para>
<primary>get_typelib_path</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_typelib_path (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_typelib_path (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>If namespace @namespace_ is loaded, return the full path to the
.typelib file it was loaded from. If the typelib for
@@ -928,8 +928,8 @@ the special string "$lt;builtin$gt;".</para>
<primary>get_version</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_version (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_irepository_get_version (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_</parameter>);
</programlisting>
<para>This function returns the loaded version associated with the given
namespace @namespace_.
@@ -970,9 +970,9 @@ such as #g_irepository_require before calling this function.</para>
<primary>is_registered</primary>
</indexterm>
<programlisting>
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_irepository_is_registered (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> version</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_irepository_is_registered (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>);
</programlisting>
<para>Check whether a particular namespace (and optionally, a specific
version thereof) is currently loaded. This function is likely to
@@ -1027,8 +1027,8 @@ quickly as this function will if it has already been loaded.</para>
<primary>load_typelib</primary>
</indexterm>
<programlisting>
-<link linkend="char"><returnvalue>char*</returnvalue></link> g_irepository_load_typelib (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib, </parameter>
+<link linkend="char"><returnvalue>char*</returnvalue></link> g_irepository_load_typelib (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib, </parameter>
<parameter><link linkend="GIRepositoryLoadFlags"><type>GIRepositoryLoadFlags</type></link> flags</parameter>);
</programlisting>
<para/>
@@ -1062,9 +1062,9 @@ quickly as this function will if it has already been loaded.</para>
<primary>require</primary>
</indexterm>
<programlisting>
-<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> g_irepository_require (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> version, </parameter>
+<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> g_irepository_require (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *version, </parameter>
<parameter><link linkend="GIRepositoryLoadFlags"><type>GIRepositoryLoadFlags</type></link> flags</parameter>);
</programlisting>
<para>Force the namespace @namespace_ to be loaded if it isn't already.
@@ -1128,10 +1128,10 @@ not specified, the latest will be used.</para>
<primary>require_private</primary>
</indexterm>
<programlisting>
-<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> g_irepository_require_private (<parameter><link linkend="GIRepository"><type>GIRepository*</type></link> repository, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> typelib_dir, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> namespace_, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> version, </parameter>
+<link linkend="GITypelib"><returnvalue>GITypelib*</returnvalue></link> g_irepository_require_private (<parameter><link linkend="GIRepository"><type>GIRepository</type></link> *repository, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *typelib_dir, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *namespace_, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *version, </parameter>
<parameter><link linkend="GIRepositoryLoadFlags"><type>GIRepositoryLoadFlags</type></link> flags</parameter>);
</programlisting>
<para>Force the namespace @namespace_ to be loaded if it isn't already.
@@ -1224,11 +1224,11 @@ not specified, the latest will be used.</para>
<refsynopsisdiv id="GITypelib.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>
<synopsis>
-<link linkend="void"><returnvalue>void</returnvalue></link> <link linkend="free-details">g_typelib_free</link> (<parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib</parameter>);
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_namespace-details">g_typelib_get_namespace</link> (<parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib</parameter>);
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="symbol-details">g_typelib_symbol</link> (<parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> symbol_name, </parameter>
- <parameter><link linkend="gpointer"><type>gpointer*</type></link> symbol</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link> <link linkend="free-details">g_typelib_free</link> (<parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> <link linkend="get_namespace-details">g_typelib_get_namespace</link> (<parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> <link linkend="symbol-details">g_typelib_symbol</link> (<parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *symbol_name, </parameter>
+ <parameter><link linkend="gpointer"><type>gpointer</type></link> *symbol</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="GITypelib-details" role="details">
@@ -1239,7 +1239,7 @@ not specified, the latest will be used.</para>
<primary>free</primary>
</indexterm>
<programlisting>
-<link linkend="void"><returnvalue>void</returnvalue></link> g_typelib_free (<parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link> g_typelib_free (<parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib</parameter>);
</programlisting>
<para/>
<variablelist role="params">
@@ -1264,7 +1264,7 @@ not specified, the latest will be used.</para>
<primary>get_namespace</primary>
</indexterm>
<programlisting>
-<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_typelib_get_namespace (<parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib</parameter>);
+<link linkend="gchar"><returnvalue>gchar*</returnvalue></link> g_typelib_get_namespace (<parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib</parameter>);
</programlisting>
<para/>
<variablelist role="params">
@@ -1289,9 +1289,9 @@ not specified, the latest will be used.</para>
<primary>symbol</primary>
</indexterm>
<programlisting>
-<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_typelib_symbol (<parameter><link linkend="GITypelib"><type>GITypelib*</type></link> typelib, </parameter>
- <parameter><link linkend="gchar"><type>gchar*</type></link> symbol_name, </parameter>
- <parameter><link linkend="gpointer"><type>gpointer*</type></link> symbol</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link> g_typelib_symbol (<parameter><link linkend="GITypelib"><type>GITypelib</type></link> *typelib, </parameter>
+ <parameter><link linkend="gchar"><type>gchar</type></link> *symbol_name, </parameter>
+ <parameter><link linkend="gpointer"><type>gpointer</type></link> *symbol</parameter>);
</programlisting>
<para/>
<variablelist role="params">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]