summaryrefslogtreecommitdiff
path: root/fontconfig
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-09-20 14:01:47 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-01-01 22:55:08 -0600
commit7c0f79c5fe9db50b55112a1048a8f1c6a80e96fa (patch)
treee04c37fab041025227203ee79842b2db818e7624 /fontconfig
parent1e2c0d70527c39f761c5770d93a5c1f8e87522bc (diff)
downloadfontconfig-7c0f79c5fe9db50b55112a1048a8f1c6a80e96fa.tar.gz
Deprecate FcName(Un)RegisterObjectTypes / FcName(Un)RegisterConstants
These never worked as intended. The problem is, if Fontconfig tries to read config files when these new types / constants are not registered, it errs. As a result, no defined types / constants are usable from config files. Which makes these really useless. Xft was the only user of this API and even there it's not really used. Just kill it. One inch closer to thread-safety since we can fix the object-type hash table at compile time.
Diffstat (limited to 'fontconfig')
-rw-r--r--fontconfig/fontconfig.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h
index 0c169ef..1af63ab 100644
--- a/fontconfig/fontconfig.h
+++ b/fontconfig/fontconfig.h
@@ -424,7 +424,7 @@ FcCharSetCreate (void);
/* deprecated alias for FcCharSetCreate */
FcPublic FcCharSet *
FcCharSetNew (void);
-
+
FcPublic void
FcCharSetDestroy (FcCharSet *fcs);
@@ -734,21 +734,25 @@ FcMatrixShear (FcMatrix *m, double sh, double sv);
/* fcname.c */
+/* Deprecated. Does nothing. Returns FcFalse. */
FcPublic FcBool
FcNameRegisterObjectTypes (const FcObjectType *types, int ntype);
+/* Deprecated. Does nothing. Returns FcFalse. */
FcPublic FcBool
FcNameUnregisterObjectTypes (const FcObjectType *types, int ntype);
-
+
FcPublic const FcObjectType *
FcNameGetObjectType (const char *object);
+/* Deprecated. Does nothing. Returns FcFalse. */
FcPublic FcBool
FcNameRegisterConstants (const FcConstant *consts, int nconsts);
+/* Deprecated. Does nothing. Returns FcFalse. */
FcPublic FcBool
FcNameUnregisterConstants (const FcConstant *consts, int nconsts);
-
+
FcPublic const FcConstant *
FcNameGetConstant (const FcChar8 *string);