[bindings] Fix *_from_string functions

Without the element-type they will be getting garbage, at least with
Python.
This commit is contained in:
Khaled Hosny 2015-03-22 20:29:10 +02:00
parent e3671b8f8b
commit a394bb6670
3 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ _hb_options_init (void)
/** /**
* hb_tag_from_string: * hb_tag_from_string:
* @str: (array length=len): * @str: (array length=len) (element-type uint8_t):
* @len: * @len:
* *
* *
@ -115,7 +115,7 @@ const char direction_strings[][4] = {
/** /**
* hb_direction_from_string: * hb_direction_from_string:
* @str: (array length=len): * @str: (array length=len) (element-type uint8_t):
* @len: * @len:
* *
* *
@ -281,7 +281,7 @@ retry:
/** /**
* hb_language_from_string: * hb_language_from_string:
* @str: (array length=len): * @str: (array length=len) (element-type uint8_t):
* @len: * @len:
* *
* *
@ -401,7 +401,7 @@ hb_script_from_iso15924_tag (hb_tag_t tag)
/** /**
* hb_script_from_string: * hb_script_from_string:
* @s: (array length=len): * @s: (array length=len) (element-type uint8_t):
* @len: * @len:
* *
* *

View File

@ -814,7 +814,7 @@ hb_font_glyph_to_string (hb_font_t *font,
/** /**
* hb_font_glyph_from_string: * hb_font_glyph_from_string:
* @font: a font. * @font: a font.
* @s: (array length=len): * @s: (array length=len) (element-type uint8_t):
* @len: * @len:
* @glyph: (out): * @glyph: (out):
* *

View File

@ -198,7 +198,7 @@ parse_one_feature (const char **pp, const char *end, hb_feature_t *feature)
/** /**
* hb_feature_from_string: * hb_feature_from_string:
* @str: (array length=len): * @str: (array length=len) (element-type uint8_t):
* @len: * @len:
* @feature: (out) (optional): * @feature: (out) (optional):
* *