diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-10-04 17:01:01 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-10-04 17:01:01 -0400 |
commit | 645f6f265b5f6fb85b3c0f59ea874d58c86e3917 (patch) | |
tree | a6bf0f6554f1448c101d8de5deb3279ba17f020b /src | |
parent | 19c0eab8cf96d00e168c4b11ec435019c1ed44f7 (diff) |
Add is_mutable() functions
Correspond to the make_mutable() ones.
Diffstat (limited to 'src')
-rw-r--r-- | src/hb-font.cc | 6 | ||||
-rw-r--r-- | src/hb-font.h | 2 | ||||
-rw-r--r-- | src/hb-unicode.c | 6 | ||||
-rw-r--r-- | src/hb-unicode.h | 2 |
4 files changed, 16 insertions, 0 deletions
diff --git a/src/hb-font.cc b/src/hb-font.cc index e257cd87..fd5df93f 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -141,6 +141,12 @@ hb_font_funcs_make_immutable (hb_font_funcs_t *ffuncs) ffuncs->immutable = TRUE; } +hb_bool_t +hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs) +{ + return ffuncs->immutable = TRUE; +} + void hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs, diff --git a/src/hb-font.h b/src/hb-font.h index a7b6d8f6..266b74a8 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -91,6 +91,8 @@ hb_font_funcs_copy (hb_font_funcs_t *ffuncs); void hb_font_funcs_make_immutable (hb_font_funcs_t *ffuncs); +hb_bool_t +hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs); /* funcs */ diff --git a/src/hb-unicode.c b/src/hb-unicode.c index 19a891b4..280c61f9 100644 --- a/src/hb-unicode.c +++ b/src/hb-unicode.c @@ -108,6 +108,12 @@ hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs) ufuncs->immutable = TRUE; } +hb_bool_t +hb_unicode_funcs_is_immutable (hb_unicode_funcs_t *ufuncs) +{ + return ufuncs->immutable; +} + void hb_unicode_funcs_set_mirroring_func (hb_unicode_funcs_t *ufuncs, diff --git a/src/hb-unicode.h b/src/hb-unicode.h index a84a9489..4edab48a 100644 --- a/src/hb-unicode.h +++ b/src/hb-unicode.h @@ -201,6 +201,8 @@ hb_unicode_funcs_copy (hb_unicode_funcs_t *ufuncs); void hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs); +hb_bool_t +hb_unicode_funcs_is_immutable (hb_unicode_funcs_t *ufuncs); /* * funcs |