summaryrefslogtreecommitdiff
path: root/src/hb-buffer.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-04-15 18:32:36 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-04-19 00:03:44 -0400
commit70566befc59cfa8b9c43ac682749c40ea783b1dd (patch)
treec04e381892581f362c3405d78d7b93027e1fd1ab /src/hb-buffer.h
parent62879eebd9965179af8602ba29ac0a64a739b757 (diff)
[API} hb_buffer_get_glyph_{infos,positions}: Add length out parameter
Return the length, whenever we return an array. Makes it easier on the language bindings.
Diffstat (limited to 'src/hb-buffer.h')
-rw-r--r--src/hb-buffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hb-buffer.h b/src/hb-buffer.h
index 293ec828..3c0a442f 100644
--- a/src/hb-buffer.h
+++ b/src/hb-buffer.h
@@ -160,11 +160,13 @@ hb_buffer_get_length (hb_buffer_t *buffer);
/* Return value valid as long as buffer not modified */
hb_glyph_info_t *
-hb_buffer_get_glyph_infos (hb_buffer_t *buffer);
+hb_buffer_get_glyph_infos (hb_buffer_t *buffer,
+ unsigned int *length);
/* Return value valid as long as buffer not modified */
hb_glyph_position_t *
-hb_buffer_get_glyph_positions (hb_buffer_t *buffer);
+hb_buffer_get_glyph_positions (hb_buffer_t *buffer,
+ unsigned int *length);
HB_END_DECLS