diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-06-06 23:44:26 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-06-29 17:32:00 +0800 |
commit | ce097c062ea079bf7888d2b2f1f7b17d34f976b6 (patch) | |
tree | 7727f8b7d82acd0c4e2f09ef911bbb4bc8805a11 /pango/pango-language.h | |
parent | 57964efb280369db2731bfc070f3e73c9a860d18 (diff) | |
download | pango-ce097c062ea079bf7888d2b2f1f7b17d34f976b6.tar.gz |
Decorate the symbols in the headers with version macros
From the last commit, decorate all the symbols with the version
macros. Also add the version macros in the docs.
https://bugzilla.gnome.org/show_bug.cgi?id=767587
Diffstat (limited to 'pango/pango-language.h')
-rw-r--r-- | pango/pango-language.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pango/pango-language.h b/pango/pango-language.h index 8648a3a6..2ab07bc0 100644 --- a/pango/pango-language.h +++ b/pango/pango-language.h @@ -25,6 +25,8 @@ #include <glib.h> #include <glib-object.h> +#include <pango/pango-version-macros.h> + G_BEGIN_DECLS typedef struct _PangoLanguage PangoLanguage; @@ -36,23 +38,31 @@ typedef struct _PangoLanguage PangoLanguage; */ #define PANGO_TYPE_LANGUAGE (pango_language_get_type ()) +PANGO_AVAILABLE_IN_ALL GType pango_language_get_type (void) G_GNUC_CONST; +PANGO_AVAILABLE_IN_ALL PangoLanguage *pango_language_from_string (const char *language); +PANGO_AVAILABLE_IN_ALL const char *pango_language_to_string (PangoLanguage *language) G_GNUC_CONST; /* For back compat. Will have to keep indefinitely. */ #define pango_language_to_string(language) ((const char *)language) +PANGO_AVAILABLE_IN_ALL const char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST; +PANGO_AVAILABLE_IN_1_16 PangoLanguage *pango_language_get_default (void) G_GNUC_CONST; +PANGO_AVAILABLE_IN_ALL gboolean pango_language_matches (PangoLanguage *language, const char *range_list) G_GNUC_PURE; #include <pango/pango-script.h> +PANGO_AVAILABLE_IN_1_4 gboolean pango_language_includes_script (PangoLanguage *language, PangoScript script) G_GNUC_PURE; +PANGO_AVAILABLE_IN_1_22 const PangoScript *pango_language_get_scripts (PangoLanguage *language, int *num_scripts); |