| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 { | 375 { |
| 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 hb_blob_t * |
| 386 hb_glib_blob_create (GBytes *gbytes) |
| 387 { |
| 388 gsize size = 0; |
| 389 gconstpointer data = g_bytes_get_data (gbytes, &size); |
| 390 return hb_blob_create ((const char *) data, |
| 391 size, |
| 392 HB_MEMORY_MODE_READONLY, |
| 393 g_bytes_ref (gbytes), |
| 394 (hb_destroy_func_t) g_bytes_unref); |
| 395 } |
| OLD | NEW |