Blame doc/fcdircache.sgml

Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheUnlink">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheUnlink</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheUnlink</refname>
Packit 352660
	    <refpurpose>Remove all caches related to <parameter>dir</parameter></refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcBool <function>FcDirCacheUnlink</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
		<paramdef>FcConfig *<parameter>config</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
Scans the cache directories in <parameter>config</parameter>, removing any
Packit 352660
instances of the cache file for <parameter>dir</parameter>. Returns FcFalse
Packit 352660
when some internal error occurs (out of memory, etc). Errors actually
Packit 352660
unlinking any files are ignored.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheValid">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheValid</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheValid</refname>
Packit 352660
	    <refpurpose>check directory cache</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcBool <function>FcDirCacheValid</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
Returns FcTrue if <parameter>dir</parameter> has an associated valid cache
Packit 352660
file, else returns FcFalse
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheLoad">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheLoad</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheLoad</refname>
Packit 352660
	    <refpurpose>load a directory cache</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcCache * <function>FcDirCacheLoad</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
		<paramdef>FcConfig *<parameter>config</parameter></paramdef>
Packit 352660
		<paramdef>FcChar8 **<parameter>cache_file</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
Loads the cache related to <parameter>dir</parameter>. If no cache file
Packit 352660
exists, returns NULL. The name of the cache file is returned in
Packit 352660
<parameter>cache_file</parameter>, unless that is NULL. See also
Packit 352660
FcDirCacheRead.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheRescan">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheRescan</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheRescan</refname>
Packit 352660
	    <refpurpose>Re-scan a directory cache</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcCache * <function>FcDirCacheRescan</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
		<paramdef>FcConfig *<parameter>config</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
Re-scan directories only at <parameter>dir</parameter> and update the cache.
Packit 352660
returns NULL if failed.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
	<refsect1><title>Since</title>
Packit 352660
	    <para>version 2.11.1</para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheRead">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheRead</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheRead</refname>
Packit 352660
	    <refpurpose>read or construct a directory cache</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcCache * <function>FcDirCacheRead</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
		<paramdef>FcBool <parameter>force</parameter></paramdef>
Packit 352660
		<paramdef>FcConfig *<parameter>config</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
This returns a cache for <parameter>dir</parameter>. If
Packit 352660
<parameter>force</parameter> is FcFalse, then an existing, valid cache file
Packit 352660
will be used. Otherwise, a new cache will be created by scanning the
Packit 352660
directory and that returned.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheLoadFile">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheLoadFile</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheLoadFile</refname>
Packit 352660
	    <refpurpose>load a cache file</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcCache * <function>FcDirCacheLoadFile</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>cache_file</parameter></paramdef>
Packit 352660
		<paramdef>struct stat *<parameter>file_stat</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
This function loads a directory cache from
Packit 352660
<parameter>cache_file</parameter>. If <parameter>file_stat</parameter> is
Packit 352660
non-NULL, it will be filled with the results of stat(2) on the cache file.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirCacheUnload">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirCacheUnload</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirCacheUnload</refname>
Packit 352660
	    <refpurpose>unload a cache file</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>void <function>FcDirCacheUnload</function></funcdef>
Packit 352660
		<paramdef>FcCache *<parameter>cache</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
This function dereferences <parameter>cache</parameter>. When no other
Packit 352660
references to it remain, all memory associated with the cache will be freed.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>