<?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="appstream-as-cache-file">
<refmeta>
<refentrytitle role="top_of_page" id="appstream-as-cache-file.top_of_page">as-cache-file</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>APPSTREAM Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>as-cache-file</refname>
<refpurpose>Load and save cache files.</refpurpose>
</refnamediv>

<refsect1 id="appstream-as-cache-file.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="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-cache-file-save">as_cache_file_save</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GPtrArray"><returnvalue>GPtrArray</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-cache-file-read">as_cache_file_read</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>

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

<refsect1 id="appstream-as-cache-file.description" role="desc">
<title role="desc.title">Description</title>

</refsect1>
<refsect1 id="appstream-as-cache-file.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="as-cache-file-save" role="function">
<title>as_cache_file_save&#160;()</title>
<indexterm zone="as-cache-file-save"><primary>as_cache_file_save</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_cache_file_save (<parameter>const <link linkend="gchar"><type>gchar</type></link> *fname</parameter>,
                    <parameter>const <link linkend="gchar"><type>gchar</type></link> *locale</parameter>,
                    <parameter><link linkend="GPtrArray"><type>GPtrArray</type></link> *cpts</parameter>,
                    <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
<para>Serialize components to a cache file and store it on disk.</para>
<refsect3 id="as-cache-file-save.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>fname</para></entry>
<entry role="parameter_description"><para>The file to save the data to.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>locale</para></entry>
<entry role="parameter_description"><para>The locale this cache file is for.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cpts</para></entry>
<entry role="parameter_description"><para> The components to serialize. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>element-type</acronym> AsComponent]</emphasis></entry></row>
<row><entry role="parameter_name"><para>error</para></entry>
<entry role="parameter_description"><para>A <link linkend="GError"><type>GError</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-cache-file-read" role="function">
<title>as_cache_file_read&#160;()</title>
<indexterm zone="as-cache-file-read"><primary>as_cache_file_read</primary></indexterm>
<programlisting language="C"><link linkend="GPtrArray"><returnvalue>GPtrArray</returnvalue></link>&#160;*
as_cache_file_read (<parameter>const <link linkend="gchar"><type>gchar</type></link> *fname</parameter>,
                    <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
<para>
</para>
</refsect2>

</refsect1>
<refsect1 id="appstream-as-cache-file.other_details" role="details">
<title role="details.title">Types and Values</title>

</refsect1>

</refentry>
