Imported Upstream version 2.13.0
[platform/upstream/fontconfig.git] / doc / FcConfigReference.3
1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcConfigReference" "3" "06 3月 2018" "Fontconfig 2.13.0" ""
3 .SH NAME
4 FcConfigReference \- Increment config reference count
5 .SH SYNOPSIS
6 .nf
7 \fB#include <fontconfig/fontconfig.h>
8 .sp
9 FcConfig * FcConfigReference (FcConfig *\fIconfig\fB);
10 .fi\fR
11 .SH "DESCRIPTION"
12 .PP
13 Add another reference to \fIconfig\fR\&. Configs are freed only
14 when the reference count reaches zero.
15 If \fIconfig\fR is NULL, the current configuration is used.
16 In that case this function will be similar to FcConfigGetCurrent() except that
17 it increments the reference count before returning and the user is responsible
18 for destroying the configuration when not needed anymore.