/*
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright © 2009 Red Hat, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Red Hat Author(s): Behdad Esfahbod
*/
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
#ifndef HB_BLOB_H
#define HB_BLOB_H
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