Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > 302473efd5d8804d45197576e257a9ed > files > 157

libappstream-devel-0.11.8-1.mga6.armv7hl.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AsValidatorIssue: AppStream Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="AppStream Library Reference Manual">
<link rel="up" href="ch01.html" title="AppStream API Reference">
<link rel="prev" href="appstream-AsValidator.html" title="AsValidator">
<link rel="next" href="appstream-as-spdx.html" title="as-spdx">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#appstream-AsValidatorIssue.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="appstream-AsValidator.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="appstream-as-spdx.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="appstream-AsValidatorIssue"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="appstream-AsValidatorIssue.top_of_page"></a>AsValidatorIssue</span></h2>
<p>AsValidatorIssue — Object representing an issue found in AppStream metadata</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="appstream-AsValidatorIssue.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="returnvalue">AsValidatorIssue</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-new" title="as_validator_issue_new ()">as_validator_issue_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="appstream-AsValidatorIssue.html#AsIssueKind" title="enum AsIssueKind"><span class="returnvalue">AsIssueKind</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-kind" title="as_validator_issue_get_kind ()">as_validator_issue_get_kind</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-set-kind" title="as_validator_issue_set_kind ()">as_validator_issue_set_kind</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="appstream-AsValidatorIssue.html#AsIssueImportance" title="enum AsIssueImportance"><span class="returnvalue">AsIssueImportance</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-importance" title="as_validator_issue_get_importance ()">as_validator_issue_get_importance</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-set-importance" title="as_validator_issue_set_importance ()">as_validator_issue_set_importance</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-message" title="as_validator_issue_get_message ()">as_validator_issue_get_message</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-set-message" title="as_validator_issue_set_message ()">as_validator_issue_set_message</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-cid" title="as_validator_issue_get_cid ()">as_validator_issue_get_cid</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-set-cid" title="as_validator_issue_set_cid ()">as_validator_issue_set_cid</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-filename" title="as_validator_issue_get_filename ()">as_validator_issue_get_filename</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-set-filename" title="as_validator_issue_set_filename ()">as_validator_issue_set_filename</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-line" title="as_validator_issue_get_line ()">as_validator_issue_get_line</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-set-line" title="as_validator_issue_set_line ()">as_validator_issue_set_line</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsValidatorIssue.html#as-validator-issue-get-location" title="as_validator_issue_get_location ()">as_validator_issue_get_location</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="appstream-AsValidatorIssue.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="appstream-AsValidatorIssue.html#AS-TYPE-VALIDATOR-ISSUE:CAPS" title="AS_TYPE_VALIDATOR_ISSUE">AS_TYPE_VALIDATOR_ISSUE</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssueClass" title="struct AsValidatorIssueClass">AsValidatorIssueClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="appstream-AsValidatorIssue.html#AsIssueImportance" title="enum AsIssueImportance">AsIssueImportance</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="appstream-AsValidatorIssue.html#AsIssueKind" title="enum AsIssueKind">AsIssueKind</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue">AsValidatorIssue</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="appstream-AsValidatorIssue.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;appstream.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="appstream-AsValidatorIssue.description"></a><h2>Description</h2>
<p>See also: <a class="link" href="appstream-AsValidator.html#AsValidator" title="AsValidator"><span class="type">AsValidator</span></a></p>
</div>
<div class="refsect1">
<a name="appstream-AsValidatorIssue.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="as-validator-issue-new"></a><h3>as_validator_issue_new ()</h3>
<pre class="programlisting"><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="returnvalue">AsValidatorIssue</span></a> *
as_validator_issue_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a>.</p>
<div class="refsect3">
<a name="as-validator-issue-new.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-kind"></a><h3>as_validator_issue_get_kind ()</h3>
<pre class="programlisting"><a class="link" href="appstream-AsValidatorIssue.html#AsIssueKind" title="enum AsIssueKind"><span class="returnvalue">AsIssueKind</span></a>
as_validator_issue_get_kind (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>Gets the issue kind enum, if available.</p>
<div class="refsect3">
<a name="as-validator-issue-get-kind.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-kind.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="appstream-AsValidatorIssue.html#AsIssueKind" title="enum AsIssueKind"><span class="type">AsIssueKind</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-set-kind"></a><h3>as_validator_issue_set_kind ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_validator_issue_set_kind (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>,
                             <em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsIssueKind" title="enum AsIssueKind"><span class="type">AsIssueKind</span></a> kind</code></em>);</pre>
<p>Sets the kind enum for this issue, if known.</p>
<div class="refsect3">
<a name="as-validator-issue-set-kind.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>kind</p></td>
<td class="parameter_description"><p>the <a class="link" href="appstream-AsValidatorIssue.html#AsIssueKind" title="enum AsIssueKind"><span class="type">AsIssueKind</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-importance"></a><h3>as_validator_issue_get_importance ()</h3>
<pre class="programlisting"><a class="link" href="appstream-AsValidatorIssue.html#AsIssueImportance" title="enum AsIssueImportance"><span class="returnvalue">AsIssueImportance</span></a>
as_validator_issue_get_importance (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>Gets the importance of this issue.</p>
<div class="refsect3">
<a name="as-validator-issue-get-importance.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-importance.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="appstream-AsValidatorIssue.html#AsIssueImportance" title="enum AsIssueImportance"><span class="type">AsIssueImportance</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-set-importance"></a><h3>as_validator_issue_set_importance ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_validator_issue_set_importance (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>,
                                   <em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsIssueImportance" title="enum AsIssueImportance"><span class="type">AsIssueImportance</span></a> importance</code></em>);</pre>
<p>Sets the importance for this issue.</p>
<div class="refsect3">
<a name="as-validator-issue-set-importance.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>importance</p></td>
<td class="parameter_description"><p>the <a class="link" href="appstream-AsValidatorIssue.html#AsIssueImportance" title="enum AsIssueImportance"><span class="type">AsIssueImportance</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-message"></a><h3>as_validator_issue_get_message ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_validator_issue_get_message (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>Gets the message for the issue.</p>
<div class="refsect3">
<a name="as-validator-issue-get-message.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-message.returns"></a><h4>Returns</h4>
<p> the message</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-set-message"></a><h3>as_validator_issue_set_message ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_validator_issue_set_message (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>,
                                <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);</pre>
<p>Sets a message on the issue.</p>
<div class="refsect3">
<a name="as-validator-issue-set-message.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>message</p></td>
<td class="parameter_description"><p>the message text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-cid"></a><h3>as_validator_issue_get_cid ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_validator_issue_get_cid (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>The component-id this issue is about.</p>
<div class="refsect3">
<a name="as-validator-issue-get-cid.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-cid.returns"></a><h4>Returns</h4>
<p> a component-id.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-set-cid"></a><h3>as_validator_issue_set_cid ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_validator_issue_set_cid (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>,
                            <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *cid</code></em>);</pre>
<p>Sets the component-id this issue is about.</p>
<div class="refsect3">
<a name="as-validator-issue-set-cid.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cid</p></td>
<td class="parameter_description"><p>a component-id.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-filename"></a><h3>as_validator_issue_get_filename ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_validator_issue_get_filename (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>The name of the file this issue was found in.</p>
<div class="refsect3">
<a name="as-validator-issue-get-filename.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-filename.returns"></a><h4>Returns</h4>
<p> the filename</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-set-filename"></a><h3>as_validator_issue_set_filename ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_validator_issue_set_filename (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>,
                                 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fname</code></em>);</pre>
<p>Sets the name of the file the issue was found in.</p>
<div class="refsect3">
<a name="as-validator-issue-set-filename.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>fname</p></td>
<td class="parameter_description"><p>the filename.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-line"></a><h3>as_validator_issue_get_line ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
as_validator_issue_get_line (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>Gets the line number where this issue was found.</p>
<div class="refsect3">
<a name="as-validator-issue-get-line.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-line.returns"></a><h4>Returns</h4>
<p> the line number where this issue occured, or -1 if unknown.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-set-line"></a><h3>as_validator_issue_set_line ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_validator_issue_set_line (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>,
                             <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> line</code></em>);</pre>
<p>Sets the importance for this issue.</p>
<div class="refsect3">
<a name="as-validator-issue-set-line.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>line</p></td>
<td class="parameter_description"><p>the line number.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-validator-issue-get-location"></a><h3>as_validator_issue_get_location ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_validator_issue_get_location (<em class="parameter"><code><a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> *issue</code></em>);</pre>
<p>Builds a string containing all information about the location
where this issue occured that we know about.</p>
<div class="refsect3">
<a name="as-validator-issue-get-location.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>issue</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsValidatorIssue.html#AsValidatorIssue" title="AsValidatorIssue"><span class="type">AsValidatorIssue</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-validator-issue-get-location.returns"></a><h4>Returns</h4>
<p> the location hint as string. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="appstream-AsValidatorIssue.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="AS-TYPE-VALIDATOR-ISSUE:CAPS"></a><h3>AS_TYPE_VALIDATOR_ISSUE</h3>
<pre class="programlisting">#define AS_TYPE_VALIDATOR_ISSUE (as_validator_issue_get_type ())
</pre>
</div>
<hr>
<div class="refsect2">
<a name="AsValidatorIssueClass"></a><h3>struct AsValidatorIssueClass</h3>
<pre class="programlisting">struct AsValidatorIssueClass {
	GObjectClass		parent_class;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="AsIssueImportance"></a><h3>enum AsIssueImportance</h3>
<p>The importance of an issue found by <a class="link" href="appstream-AsValidator.html#AsValidator" title="AsValidator"><span class="type">AsValidator</span></a></p>
<div class="refsect3">
<a name="AsIssueImportance.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-IMPORTANCE-UNKNOWN:CAPS"></a>AS_ISSUE_IMPORTANCE_UNKNOWN</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-IMPORTANCE-ERROR:CAPS"></a>AS_ISSUE_IMPORTANCE_ERROR</p></td>
<td class="enum_member_description">
<p>There is a serious error in your metadata</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-IMPORTANCE-WARNING:CAPS"></a>AS_ISSUE_IMPORTANCE_WARNING</p></td>
<td class="enum_member_description">
<p>Something which should be fixed, but is not fatal</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-IMPORTANCE-INFO:CAPS"></a>AS_ISSUE_IMPORTANCE_INFO</p></td>
<td class="enum_member_description">
<p>Non-essential information on how to improve your metadata</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-IMPORTANCE-PEDANTIC:CAPS"></a>AS_ISSUE_IMPORTANCE_PEDANTIC</p></td>
<td class="enum_member_description">
<p>Pedantic information</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="AsIssueKind"></a><h3>enum AsIssueKind</h3>
<p>The issue type.</p>
<div class="refsect3">
<a name="AsIssueKind.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-UNKNOWN:CAPS"></a>AS_ISSUE_KIND_UNKNOWN</p></td>
<td class="enum_member_description">
<p>Type invalid or not known</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-MARKUP-INVALID:CAPS"></a>AS_ISSUE_KIND_MARKUP_INVALID</p></td>
<td class="enum_member_description">
<p>The XML markup is invalid</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-LEGACY:CAPS"></a>AS_ISSUE_KIND_LEGACY</p></td>
<td class="enum_member_description">
<p>An element from a legacy AppStream specification has been found</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-TAG-DUPLICATED:CAPS"></a>AS_ISSUE_KIND_TAG_DUPLICATED</p></td>
<td class="enum_member_description">
<p>A tag is duplicated</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-TAG-MISSING:CAPS"></a>AS_ISSUE_KIND_TAG_MISSING</p></td>
<td class="enum_member_description">
<p>A required tag is missing</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-TAG-UNKNOWN:CAPS"></a>AS_ISSUE_KIND_TAG_UNKNOWN</p></td>
<td class="enum_member_description">
<p>An unknown tag was found</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-TAG-NOT-ALLOWED:CAPS"></a>AS_ISSUE_KIND_TAG_NOT_ALLOWED</p></td>
<td class="enum_member_description">
<p>A tag is not allowed in the current context</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-PROPERTY-MISSING:CAPS"></a>AS_ISSUE_KIND_PROPERTY_MISSING</p></td>
<td class="enum_member_description">
<p>A required property is missing</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-PROPERTY-INVALID:CAPS"></a>AS_ISSUE_KIND_PROPERTY_INVALID</p></td>
<td class="enum_member_description">
<p>A property is invalid</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-VALUE-MISSING:CAPS"></a>AS_ISSUE_KIND_VALUE_MISSING</p></td>
<td class="enum_member_description">
<p>A value is missing</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-VALUE-WRONG:CAPS"></a>AS_ISSUE_KIND_VALUE_WRONG</p></td>
<td class="enum_member_description">
<p>The value of a tag or property is wrong</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-VALUE-ISSUE:CAPS"></a>AS_ISSUE_KIND_VALUE_ISSUE</p></td>
<td class="enum_member_description">
<p>There is an issue with a tag or property value (often non-fatal)</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-FILE-MISSING:CAPS"></a>AS_ISSUE_KIND_FILE_MISSING</p></td>
<td class="enum_member_description">
<p>A required file or other metadata was missing</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-WRONG-NAME:CAPS"></a>AS_ISSUE_KIND_WRONG_NAME</p></td>
<td class="enum_member_description">
<p>The naming of an entity is wrong</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-READ-ERROR:CAPS"></a>AS_ISSUE_KIND_READ_ERROR</p></td>
<td class="enum_member_description">
<p>Reading of data failed</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-ISSUE-KIND-REMOTE-ERROR:CAPS"></a>AS_ISSUE_KIND_REMOTE_ERROR</p></td>
<td class="enum_member_description">
<p>Getting additional content from a remote location failed</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="AsValidatorIssue"></a><h3>AsValidatorIssue</h3>
<pre class="programlisting">typedef struct _AsValidatorIssue AsValidatorIssue;</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>