From ee2000494c4c8367fe20593709a979d158687855 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 28 Jul 2015 12:48:40 +0900 Subject: Add FcPatternGetWithBinding() to obtain the binding type of the value in FcPattern. https://bugs.freedesktop.org/show_bug.cgi?id=19375 --- fontconfig/fontconfig.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'fontconfig') diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h index 2e35b6b..9535c56 100644 --- a/fontconfig/fontconfig.h +++ b/fontconfig/fontconfig.h @@ -28,6 +28,7 @@ #include #include #include +#include #if defined(__GNUC__) && (__GNUC__ >= 4) #define FC_ATTRIBUTE_SENTINEL(x) __attribute__((__sentinel__(0))) @@ -236,6 +237,12 @@ typedef enum _FcResult { FcResultOutOfMemory } FcResult; +typedef enum _FcValueBinding { + FcValueBindingWeak, FcValueBindingStrong, FcValueBindingSame, + /* to make sure sizeof (FcValueBinding) == 4 even with -fshort-enums */ + FcValueBindingEnd = INT_MAX +} FcValueBinding; + typedef struct _FcPattern FcPattern; typedef struct _FcLangSet FcLangSet; @@ -837,7 +844,10 @@ FcPatternAddWeak (FcPattern *p, const char *object, FcValue value, FcBool append FcPublic FcResult FcPatternGet (const FcPattern *p, const char *object, int id, FcValue *v); - + +FcPublic FcResult +FcPatternGetWithBinding (const FcPattern *p, const char *object, int id, FcValue *v, FcValueBinding *b); + FcPublic FcBool FcPatternDel (FcPattern *p, const char *object); -- cgit v1.2.1