12c393a42Smrg/* 22c393a42Smrg * Copyright © 2007 Keith Packard 32c393a42Smrg * 42c393a42Smrg * Permission to use, copy, modify, distribute, and sell this software and its 52c393a42Smrg * documentation for any purpose is hereby granted without fee, provided that 62c393a42Smrg * the above copyright notice appear in all copies and that both that 72c393a42Smrg * copyright notice and this permission notice appear in supporting 8ca08ab68Smrg * documentation, and that the name of the author(s) not be used in 92c393a42Smrg * advertising or publicity pertaining to distribution of the software without 10ca08ab68Smrg * specific, written prior permission. The authors make no 112c393a42Smrg * representations about the suitability of this software for any purpose. It 122c393a42Smrg * is provided "as is" without express or implied warranty. 132c393a42Smrg * 14a6844aabSmrg * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 152c393a42Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16a6844aabSmrg * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR 172c393a42Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 182c393a42Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 192c393a42Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 202c393a42Smrg * PERFORMANCE OF THIS SOFTWARE. 212c393a42Smrg */ 221cc69409Smrg 232c393a42Smrg@RET@ const FcChar8 * 242c393a42Smrg@FUNC@ FcCacheDir 251cc69409Smrg@TYPE1@ const FcCache * @ARG1@ cache 261cc69409Smrg@PURPOSE@ Return directory of <parameter>cache</parameter> 272c393a42Smrg@DESC@ 282c393a42SmrgThis function returns the directory from which the cache was constructed. 292c393a42Smrg@@ 302c393a42Smrg 311cc69409Smrg@RET@ FcFontSet * 321cc69409Smrg@FUNC@ FcCacheCopySet 331cc69409Smrg@TYPE1@ const FcCache * @ARG1@ cache 341cc69409Smrg@PURPOSE@ Returns a copy of the fontset from <parameter>cache</parameter> 352c393a42Smrg@DESC@ 362c393a42SmrgThe returned fontset contains each of the font patterns from 372c393a42Smrg<parameter>cache</parameter>. This fontset may be modified, but the patterns 382c393a42Smrgfrom the cache are read-only. 392c393a42Smrg@@ 402c393a42Smrg 411cc69409Smrg@RET@ const FcChar8 * 421cc69409Smrg@FUNC@ FcCacheSubdir 431cc69409Smrg@TYPE1@ const FcCache * @ARG1@ cache 441cc69409Smrg@TYPE2@ int @ARG2@ i 451cc69409Smrg@PURPOSE@ Return the <parameter>i</parameter>'th subdirectory. 462c393a42Smrg@DESC@ 472c393a42SmrgThe set of subdirectories stored in a cache file are indexed by this 482c393a42Smrgfunction, <parameter>i</parameter> should range from 0 to 492c393a42Smrg<parameter>n</parameter>-1, where <parameter>n</parameter> is the return 502c393a42Smrgvalue from FcCacheNumSubdir. 512c393a42Smrg@@ 522c393a42Smrg 531cc69409Smrg@RET@ int 541cc69409Smrg@FUNC@ FcCacheNumSubdir 551cc69409Smrg@TYPE1@ const FcCache * @ARG1@ cache 561cc69409Smrg@PURPOSE@ Return the number of subdirectories in <parameter>cache</parameter>. 572c393a42Smrg@DESC@ 582c393a42SmrgThis returns the total number of subdirectories in the cache. 592c393a42Smrg@@ 602c393a42Smrg 611cc69409Smrg@RET@ int 621cc69409Smrg@FUNC@ FcCacheNumFont 631cc69409Smrg@TYPE1@ const FcCache * @ARG1@ cache 641cc69409Smrg@PURPOSE@ Returns the number of fonts in <parameter>cache</parameter>. 652c393a42Smrg@DESC@ 662c393a42SmrgThis returns the number of fonts which would be included in the return from 672c393a42SmrgFcCacheCopySet. 682c393a42Smrg@@ 69ca08ab68Smrg 701cc69409Smrg@RET@ FcBool 711cc69409Smrg@FUNC@ FcDirCacheClean 721cc69409Smrg@TYPE1@ const FcChar8 * @ARG1@ cache_dir 731cc69409Smrg@TYPE2@ FcBool @ARG2@ verbose 741cc69409Smrg@PURPOSE@ Clean up a cache directory 75a32e9e42Smrg@DESC@ 76ca08ab68SmrgThis tries to clean up the cache directory of <parameter>cache_dir</parameter>. 77ca08ab68SmrgThis returns FcTrue if the operation is successfully complete. otherwise FcFalse. 781cc69409Smrg@SINCE@ 2.9.91 79ca08ab68Smrg@@ 80ca08ab68Smrg 811cc69409Smrg@RET@ void 821cc69409Smrg@FUNC@ FcCacheCreateTagFile 831cc69409Smrg@TYPE1@ const FcConfig * @ARG1@ config 841cc69409Smrg@PURPOSE@ Create CACHEDIR.TAG at cache directory. 85ca08ab68Smrg@DESC@ 86ca08ab68SmrgThis tries to create CACHEDIR.TAG file at the cache directory registered 87ca08ab68Smrgto <parameter>config</parameter>. 881cc69409Smrg@SINCE@ 2.9.91 89ca08ab68Smrg@@ 90a32e9e42Smrg 911cc69409Smrg@RET@ FcBool 921cc69409Smrg@FUNC@ FcDirCacheCreateUUID 931cc69409Smrg@TYPE1@ FcChar8 * @ARG1@ dir 941cc69409Smrg@TYPE2@ FcBool @ARG2@ force 951cc69409Smrg@TYPE3@ FcConfig * @ARG3@ config 961cc69409Smrg@PURPOSE@ Create .uuid file at a directory 97a32e9e42Smrg@DESC@ 98a4e54154SmrgThis function is deprecated. it doesn't take any effects. 991cc69409Smrg@SINCE@ 2.12.92 100a32e9e42Smrg@@ 101a32e9e42Smrg 1021cc69409Smrg@RET@ FcBool 1031cc69409Smrg@FUNC@ FcDirCacheDeleteUUID 1041cc69409Smrg@TYPE1@ const FcChar8 * @ARG1@ dir 1051cc69409Smrg@TYPE2@ FcConfig * @ARG2@ config 1061cc69409Smrg@PURPOSE@ Delete .uuid file 107a32e9e42Smrg@DESC@ 108a32e9e42SmrgThis is to delete .uuid file containing an UUID at a font directory of 109a32e9e42Smrg<parameter>dir</parameter>. 1101cc69409Smrg@SINCE@ 2.13.1 111a32e9e42Smrg@@ 112