summaryrefslogtreecommitdiff
path: root/src/hb-buffer-private.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-04-21 18:24:02 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-04-21 18:24:02 -0400
commitfca368c4682624346a0aaee690e1ad6ed4c0b337 (patch)
treec90dfc01f5e734a46b239621441b95eec7554095 /src/hb-buffer-private.hh
parenta9f24c802956d57180d71b83e96a0fb81197df4a (diff)
Add hb_object_header_t which is the common part of all objects
Makes way for adding arbitrary user_data support.
Diffstat (limited to 'src/hb-buffer-private.hh')
-rw-r--r--src/hb-buffer-private.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh
index 44cda375..6954f96f 100644
--- a/src/hb-buffer-private.hh
+++ b/src/hb-buffer-private.hh
@@ -30,6 +30,7 @@
#include "hb-private.hh"
#include "hb-buffer.h"
+#include "hb-object-private.hh"
#include "hb-unicode-private.hh"
HB_BEGIN_DECLS
@@ -85,7 +86,7 @@ _hb_buffer_set_masks (hb_buffer_t *buffer,
struct _hb_buffer_t {
- hb_reference_count_t ref_count;
+ hb_object_header_t header;
/* Information about how the text in the buffer should be treated */
@@ -94,9 +95,9 @@ struct _hb_buffer_t {
/* Buffer contents */
- hb_bool_t have_output; /* Whether we have an output buffer going on */
- hb_bool_t have_positions; /* Whether we have positions */
- hb_bool_t in_error; /* Allocation failed */
+ bool have_output; /* Whether we have an output buffer going on */
+ bool have_positions; /* Whether we have positions */
+ bool in_error; /* Allocation failed */
unsigned int i; /* Cursor into ->info and ->pos arrays */
unsigned int len; /* Length of ->info and ->pos arrays */