Blame doc/fcdircache.fncs

Packit 352660
/*
Packit 352660
 * Copyright © 2007 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 copyright
Packit 352660
 * notice and this permission notice appear in supporting documentation, and
Packit 352660
 * that the name of the copyright holders not be used in advertising or
Packit 352660
 * publicity pertaining to distribution of the software without specific,
Packit 352660
 * written prior permission.  The copyright holders make no representations
Packit 352660
 * about the suitability of this software for any purpose.  It is provided "as
Packit 352660
 * is" without express or implied warranty.
Packit 352660
 *
Packit 352660
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
 * EVENT SHALL THE COPYRIGHT HOLDERS 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 PERFORMANCE
Packit 352660
 * OF THIS SOFTWARE.
Packit 352660
 */
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcDirCacheUnlink
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		dir
Packit 352660
@TYPE2@		FcConfig *			@ARG2@		config
Packit 352660
@PURPOSE@	Remove all caches related to <parameter>dir</parameter>
Packit 352660
@DESC@
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
@@
Packit 352660
Packit 352660
@RET@		FcBool 	
Packit 352660
@FUNC@		FcDirCacheValid 
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		dir
Packit 352660
@PURPOSE@	check directory cache 
Packit 352660
@DESC@
Packit 352660
Returns FcTrue if <parameter>dir</parameter> has an associated valid cache
Packit 352660
file, else returns FcFalse
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcCache *
Packit 352660
@FUNC@		FcDirCacheLoad
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		dir
Packit 352660
@TYPE2@		FcConfig *			@ARG2@		config
Packit 352660
@TYPE3@		FcChar8 **			@ARG3@		cache_file
Packit 352660
@PURPOSE@	load a directory cache
Packit 352660
@DESC@
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
@@
Packit 352660
Packit 352660
@RET@		FcCache *
Packit 352660
@FUNC@		FcDirCacheRescan
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		dir
Packit 352660
@TYPE2@		FcConfig *    			@ARG2@		config
Packit 352660
@PURPOSE@	Re-scan a directory cache
Packit 352660
@DESC@
Packit 352660
Re-scan directories only at <parameter>dir</parameter> and update the cache.
Packit 352660
returns NULL if failed.
Packit 352660
@SINCE@		2.11.1
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcCache *
Packit 352660
@FUNC@		FcDirCacheRead
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		dir
Packit 352660
@TYPE2@		FcBool%				@ARG2@		force
Packit 352660
@TYPE3@		FcConfig *			@ARG3@		config
Packit 352660
@PURPOSE@	read or construct a directory cache
Packit 352660
@DESC@
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
@@
Packit 352660
Packit 352660
@RET@		FcCache *
Packit 352660
@FUNC@		FcDirCacheLoadFile
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		cache_file
Packit 352660
@TYPE2@		struct stat *			@ARG2@		file_stat
Packit 352660
@PURPOSE@	load a cache file
Packit 352660
@DESC@
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
@@
Packit 352660
Packit 352660
@RET@		void
Packit 352660
@FUNC@		FcDirCacheUnload
Packit 352660
@TYPE1@		FcCache *			@ARG1@		cache
Packit 352660
@PURPOSE@	unload a cache file
Packit 352660
@DESC@
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
@@