<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
]>
<refentry id="AsDistroDetails">
<refmeta>
<refentrytitle role="top_of_page" id="AsDistroDetails.top_of_page">AsDistroDetails</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>APPSTREAM Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>AsDistroDetails</refname>
<refpurpose>Provides information about the current distribution</refpurpose>
</refnamediv>

<refsect1 id="AsDistroDetails.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_return" colwidth="150px"/>
<colspec colname="functions_name"/>
<tbody>
<row><entry role="function_type"><link linkend="AsDistroDetails"><returnvalue>AsDistroDetails</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-distro-details-new">as_distro_details_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-distro-details-get-id">as_distro_details_get_id</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-distro-details-get-name">as_distro_details_get_name</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-distro-details-get-version">as_distro_details_get_version</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-distro-details-get-str">as_distro_details_get_str</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-distro-details-get-bool">as_distro_details_get_bool</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;**
</entry><entry role="function_name"><link linkend="as-get-icon-repository-paths">as_get_icon_repository_paths</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="AsDistroDetails.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsDistroDetails--id">id</link></entry><entry role="property_flags">Read</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsDistroDetails--name">name</link></entry><entry role="property_flags">Read</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsDistroDetails--version">version</link></entry><entry role="property_flags">Read</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="AsDistroDetails.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable role="enum_members_table" pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="name" colwidth="150px"/>
<colspec colname="description"/>
<tbody>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="AS-TYPE-DISTRO-DETAILS:CAPS">AS_TYPE_DISTRO_DETAILS</link></entry></row>
<row><entry role="datatype_keyword">struct</entry><entry role="function_name"><link linkend="AsDistroDetailsClass">AsDistroDetailsClass</link></entry></row>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="AsDistroDetails-struct">AsDistroDetails</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="AsDistroDetails.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> AsDistroDetails
</screen>
</refsect1>

<refsect1 id="AsDistroDetails.includes"><title>Includes</title><synopsis>#include &lt;appstream.h&gt;
</synopsis></refsect1>

<refsect1 id="AsDistroDetails.description" role="desc">
<title role="desc.title">Description</title>
<para>This object abstracts various distribution-specific settings and provides information
about the (Linux) distribution which is currently in use.
It is used internalls to get information about the icon-store or the 3rd-party screenshot
service distributors may want to provide.</para>
<para>See also: <link linkend="AsDatabase"><type>AsDatabase</type></link></para>

</refsect1>
<refsect1 id="AsDistroDetails.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="as-distro-details-new" role="function">
<title>as_distro_details_new&#160;()</title>
<indexterm zone="as-distro-details-new"><primary>as_distro_details_new</primary></indexterm>
<programlisting language="C"><link linkend="AsDistroDetails"><returnvalue>AsDistroDetails</returnvalue></link>&#160;*
as_distro_details_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new instance of <link linkend="AsDistroDetails"><type>AsDistroDetails</type></link>.</para>
<refsect3 id="as-distro-details-new.returns" role="returns">
<title>Returns</title>
<para> a <link linkend="AsDistroDetails"><type>AsDistroDetails</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="as-distro-details-get-id" role="function">
<title>as_distro_details_get_id&#160;()</title>
<indexterm zone="as-distro-details-get-id"><primary>as_distro_details_get_id</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_distro_details_get_id (<parameter><link linkend="AsDistroDetails"><type>AsDistroDetails</type></link> *distro</parameter>);</programlisting>
</refsect2>
<refsect2 id="as-distro-details-get-name" role="function">
<title>as_distro_details_get_name&#160;()</title>
<indexterm zone="as-distro-details-get-name"><primary>as_distro_details_get_name</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_distro_details_get_name (<parameter><link linkend="AsDistroDetails"><type>AsDistroDetails</type></link> *distro</parameter>);</programlisting>
</refsect2>
<refsect2 id="as-distro-details-get-version" role="function">
<title>as_distro_details_get_version&#160;()</title>
<indexterm zone="as-distro-details-get-version"><primary>as_distro_details_get_version</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_distro_details_get_version (<parameter><link linkend="AsDistroDetails"><type>AsDistroDetails</type></link> *distro</parameter>);</programlisting>
</refsect2>
<refsect2 id="as-distro-details-get-str" role="function">
<title>as_distro_details_get_str&#160;()</title>
<indexterm zone="as-distro-details-get-str"><primary>as_distro_details_get_str</primary></indexterm>
<programlisting language="C"><link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_distro_details_get_str (<parameter><link linkend="AsDistroDetails"><type>AsDistroDetails</type></link> *distro</parameter>,
                           <parameter>const <link linkend="gchar"><type>gchar</type></link> *key</parameter>);</programlisting>
</refsect2>
<refsect2 id="as-distro-details-get-bool" role="function">
<title>as_distro_details_get_bool&#160;()</title>
<indexterm zone="as-distro-details-get-bool"><primary>as_distro_details_get_bool</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
as_distro_details_get_bool (<parameter><link linkend="AsDistroDetails"><type>AsDistroDetails</type></link> *distro</parameter>,
                            <parameter>const <link linkend="gchar"><type>gchar</type></link> *key</parameter>);</programlisting>
</refsect2>
<refsect2 id="as-get-icon-repository-paths" role="function">
<title>as_get_icon_repository_paths&#160;()</title>
<indexterm zone="as-get-icon-repository-paths"><primary>as_get_icon_repository_paths</primary></indexterm>
<programlisting language="C"><link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;**
as_get_icon_repository_paths (<parameter><type>void</type></parameter>);</programlisting>
<para>Returns list of icon-paths for software-center applications to use.
Icons of software (even if it is not installed) are stored in these
locations.</para>
<refsect3 id="as-get-icon-repository-paths.returns" role="returns">
<title>Returns</title>
<para> A NULL-terminated array of paths. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>]</emphasis></para>
</refsect3></refsect2>

</refsect1>
<refsect1 id="AsDistroDetails.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="AS-TYPE-DISTRO-DETAILS:CAPS" role="macro">
<title>AS_TYPE_DISTRO_DETAILS</title>
<indexterm zone="AS-TYPE-DISTRO-DETAILS:CAPS"><primary>AS_TYPE_DISTRO_DETAILS</primary></indexterm>
<programlisting language="C">#define AS_TYPE_DISTRO_DETAILS (as_distro_details_get_type ())
</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="AsDistroDetailsClass" role="struct">
<title>struct AsDistroDetailsClass</title>
<indexterm zone="AsDistroDetailsClass"><primary>AsDistroDetailsClass</primary></indexterm>
<programlisting language="C">struct AsDistroDetailsClass {
	GObjectClass parent_class;
};
</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="AsDistroDetails-struct" role="struct">
<title>AsDistroDetails</title>
<indexterm zone="AsDistroDetails-struct"><primary>AsDistroDetails</primary></indexterm>
<programlisting language="C">typedef struct _AsDistroDetails AsDistroDetails;</programlisting>
<para>
</para>
</refsect2>

</refsect1>
<refsect1 id="AsDistroDetails.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="AsDistroDetails--id" role="property"><title>The <literal>“id”</literal> property</title>
<indexterm zone="AsDistroDetails--id"><primary>AsDistroDetails:id</primary></indexterm>
<programlisting>  “id”                       <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>id.</para><para>Flags: Read</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="AsDistroDetails--name" role="property"><title>The <literal>“name”</literal> property</title>
<indexterm zone="AsDistroDetails--name"><primary>AsDistroDetails:name</primary></indexterm>
<programlisting>  “name”                     <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>name.</para><para>Flags: Read</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="AsDistroDetails--version" role="property"><title>The <literal>“version”</literal> property</title>
<indexterm zone="AsDistroDetails--version"><primary>AsDistroDetails:version</primary></indexterm>
<programlisting>  “version”                  <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>version.</para><para>Flags: Read</para>
<para>Default value: NULL</para>
</refsect2>

</refsect1>

</refentry>
