Index: third_party/harfbuzz-ng/src/hb-blob.h |
diff --git a/third_party/harfbuzz-ng/src/hb-blob.h b/third_party/harfbuzz-ng/src/hb-blob.h |
index dbbfc90a1f2c2cbd6a2f528d95be3f2ddbd948f5..50c9ae3bcfaeb0ea86d07d4a3bcefc07bd1ed635 100644 |
--- a/third_party/harfbuzz-ng/src/hb-blob.h |
+++ b/third_party/harfbuzz-ng/src/hb-blob.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2009 Red Hat, Inc. |
+ * Copyright © 2009 Red Hat, Inc. |
* |
* This is part of HarfBuzz, a text shaping library. |
* |
@@ -45,8 +45,8 @@ hb_blob_t * |
hb_blob_create (const char *data, |
unsigned int length, |
hb_memory_mode_t mode, |
- hb_destroy_func_t destroy, |
- void *user_data); |
+ void *user_data, |
+ hb_destroy_func_t destroy); |
hb_blob_t * |
hb_blob_create_sub_blob (hb_blob_t *parent, |
@@ -54,34 +54,42 @@ hb_blob_create_sub_blob (hb_blob_t *parent, |
unsigned int length); |
hb_blob_t * |
-hb_blob_create_empty (void); |
+hb_blob_get_empty (void); |
hb_blob_t * |
hb_blob_reference (hb_blob_t *blob); |
-unsigned int |
-hb_blob_get_reference_count (hb_blob_t *blob); |
- |
void |
hb_blob_destroy (hb_blob_t *blob); |
-unsigned int |
-hb_blob_get_length (hb_blob_t *blob); |
+hb_bool_t |
+hb_blob_set_user_data (hb_blob_t *blob, |
+ hb_user_data_key_t *key, |
+ void * data, |
+ hb_destroy_func_t destroy, |
+ hb_bool_t replace); |
+ |
+ |
+void * |
+hb_blob_get_user_data (hb_blob_t *blob, |
+ hb_user_data_key_t *key); |
-const char * |
-hb_blob_lock (hb_blob_t *blob); |
void |
-hb_blob_unlock (hb_blob_t *blob); |
+hb_blob_make_immutable (hb_blob_t *blob); |
hb_bool_t |
-hb_blob_is_writable (hb_blob_t *blob); |
+hb_blob_is_immutable (hb_blob_t *blob); |
-hb_bool_t |
-hb_blob_try_writable_inplace (hb_blob_t *blob); |
-hb_bool_t |
-hb_blob_try_writable (hb_blob_t *blob); |
+unsigned int |
+hb_blob_get_length (hb_blob_t *blob); |
+ |
+const char * |
+hb_blob_get_data (hb_blob_t *blob, unsigned int *length); |
+ |
+char * |
+hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length); |
HB_END_DECLS |