diff options
author | Akira TAGOH <akira@tagoh.org> | 2015-07-28 12:48:40 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2017-07-07 15:43:59 +0900 |
commit | ee2000494c4c8367fe20593709a979d158687855 (patch) | |
tree | 0fa6fa45e33f60d8b3839975ed1d7d1b88a29e47 /fontconfig | |
parent | 01085e07857cddf382db736a9e061f92f50397d6 (diff) | |
download | fontconfig-ee2000494c4c8367fe20593709a979d158687855.tar.gz |
Add FcPatternGetWithBinding() to obtain the binding type of the value in FcPattern.
https://bugs.freedesktop.org/show_bug.cgi?id=19375
Diffstat (limited to 'fontconfig')
-rw-r--r-- | fontconfig/fontconfig.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 <sys/types.h> #include <sys/stat.h> #include <stdarg.h> +#include <limits.h> #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); |