summaryrefslogtreecommitdiff
path: root/pango/pango-fontmap.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-12-05 13:29:48 +0100
committerAlexander Larsson <alexl@redhat.com>2012-12-06 16:36:19 +0100
commit3f3a095a1809375ef600dc3a947b3ff2df08f22c (patch)
tree5d7d2cb3ada7f3fe92fb4525eea7907f185165e1 /pango/pango-fontmap.h
parentb359bb484bc7d27a835cfd6d9ffcaed582ebf2ae (diff)
downloadpango-3f3a095a1809375ef600dc3a947b3ff2df08f22c.tar.gz
Track changes in FontMaps using a serial
This adds the pango_font_map_get_serial method that lets you see if a fontmap has changes since the last check. It adds implementations to all current fontmaps. https://bugzilla.gnome.org/show_bug.cgi?id=340066
Diffstat (limited to 'pango/pango-fontmap.h')
-rw-r--r--pango/pango-fontmap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/pango/pango-fontmap.h b/pango/pango-fontmap.h
index 602ec9fe..0f028baa 100644
--- a/pango/pango-fontmap.h
+++ b/pango/pango-fontmap.h
@@ -45,6 +45,7 @@ PangoFontset *pango_font_map_load_fontset (PangoFontMap *fontma
void pango_font_map_list_families (PangoFontMap *fontmap,
PangoFontFamily ***families,
int *n_families);
+guint pango_font_map_get_serial (PangoFontMap *fontmap);
#ifdef PANGO_ENABLE_BACKEND
@@ -76,7 +77,9 @@ struct _PangoFontMapClass
const PangoFontDescription *desc,
PangoLanguage *language);
- const char *shape_engine_type;
+ const char *shape_engine_type;
+
+ guint (*get_serial) (PangoFontMap *fontmap);
/*< private >*/
@@ -84,10 +87,9 @@ struct _PangoFontMapClass
void (*_pango_reserved1) (void);
void (*_pango_reserved2) (void);
void (*_pango_reserved3) (void);
- void (*_pango_reserved4) (void);
};
-const char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap);
+G_CONST_RETURN char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap);
#endif /* PANGO_ENABLE_BACKEND */