xenocara/dist/fontconfig/doc/FcConfigReference.3

19 lines
717 B
Groff
Raw Normal View History

.\" auto-generated by docbook2man-spec from docbook-utils package
.TH "FcConfigReference" "3" "05 8月 2016" "Fontconfig 2.12.1" ""
.SH NAME
FcConfigReference \- Increment config reference count
.SH SYNOPSIS
.nf
\fB#include <fontconfig/fontconfig.h>
.sp
FcConfig * FcConfigReference (FcConfig *\fIconfig\fB);
.fi\fR
.SH "DESCRIPTION"
.PP
Add another reference to \fIconfig\fR\&. Configs are freed only
when the reference count reaches zero.
If \fIconfig\fR is NULL, the current configuration is used.
In that case this function will be similar to FcConfigGetCurrent() except that
it increments the reference count before returning and the user is responsible
for destroying the configuration when not needed anymore.