From 072ae7a982bf640804eee0b41525e7c328806bf5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 15 Nov 2012 13:14:12 -0800 Subject: [PATCH] Add hb_buffer_serialize_list_formats() --- src/hb-buffer.cc | 6 ++++++ src/hb-buffer.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index a599153f6..4ac1fbe40 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -1035,6 +1035,12 @@ static const char *serialize_formats[] = { NULL }; +const char ** +hb_buffer_serialize_list_formats (void) +{ + return serialize_formats; +} + hb_buffer_serialize_format_t hb_buffer_serialize_format_from_string (const char *str, int len) { diff --git a/src/hb-buffer.h b/src/hb-buffer.h index ba9cd1d83..db9b40f55 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -259,6 +259,9 @@ hb_buffer_serialize_format_from_string (const char *str, int len); const char * hb_buffer_serialize_format_to_string (hb_buffer_serialize_format_t format); +const char ** +hb_buffer_serialize_list_formats (void); + /* Returns number of items, starting at start, that were serialized. */ unsigned int hb_buffer_serialize_glyphs (hb_buffer_t *buffer,