| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
| 3 * Copyright © 2011 Google, Inc. | 3 * Copyright © 2011 Google, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_glib_unicode_##name, | 376 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_glib_unicode_##name, |
| 377 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS | 377 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS |
| 378 #undef HB_UNICODE_FUNC_IMPLEMENT | 378 #undef HB_UNICODE_FUNC_IMPLEMENT |
| 379 } | 379 } |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 return const_cast<hb_unicode_funcs_t *> (&_hb_glib_unicode_funcs); | 382 return const_cast<hb_unicode_funcs_t *> (&_hb_glib_unicode_funcs); |
| 383 } | 383 } |
| 384 | 384 |
| 385 /** | 385 /** |
| 386 * hb_glib_blob_create: |
| 387 * |
| 386 * Since: 0.9.38 | 388 * Since: 0.9.38 |
| 387 **/ | 389 **/ |
| 388 hb_blob_t * | 390 hb_blob_t * |
| 389 hb_glib_blob_create (GBytes *gbytes) | 391 hb_glib_blob_create (GBytes *gbytes) |
| 390 { | 392 { |
| 391 gsize size = 0; | 393 gsize size = 0; |
| 392 gconstpointer data = g_bytes_get_data (gbytes, &size); | 394 gconstpointer data = g_bytes_get_data (gbytes, &size); |
| 393 return hb_blob_create ((const char *) data, | 395 return hb_blob_create ((const char *) data, |
| 394 size, | 396 size, |
| 395 HB_MEMORY_MODE_READONLY, | 397 HB_MEMORY_MODE_READONLY, |
| 396 g_bytes_ref (gbytes), | 398 g_bytes_ref (gbytes), |
| 397 (hb_destroy_func_t) g_bytes_unref); | 399 (hb_destroy_func_t) g_bytes_unref); |
| 398 } | 400 } |
| OLD | NEW |