|
Packit |
874993 |
/*** BEGIN file-header ***/
|
|
Packit |
874993 |
/*
|
|
Packit |
874993 |
* Copyright © 2011 Google, Inc.
|
|
Packit |
874993 |
*
|
|
Packit |
874993 |
* This is part of HarfBuzz, a text shaping library.
|
|
Packit |
874993 |
*
|
|
Packit |
874993 |
* Permission is hereby granted, without written agreement and without
|
|
Packit |
874993 |
* license or royalty fees, to use, copy, modify, and distribute this
|
|
Packit |
874993 |
* software and its documentation for any purpose, provided that the
|
|
Packit |
874993 |
* above copyright notice and the following two paragraphs appear in
|
|
Packit |
874993 |
* all copies of this software.
|
|
Packit |
874993 |
*
|
|
Packit |
874993 |
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
Packit |
874993 |
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
Packit |
874993 |
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
Packit |
874993 |
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
Packit |
874993 |
* DAMAGE.
|
|
Packit |
874993 |
*
|
|
Packit |
874993 |
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
Packit |
874993 |
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
Packit |
874993 |
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
Packit |
874993 |
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
Packit |
874993 |
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
Packit |
874993 |
*
|
|
Packit |
874993 |
* Google Author(s): Behdad Esfahbod
|
|
Packit |
874993 |
*/
|
|
Packit |
874993 |
|
|
Packit |
874993 |
#include "hb-private.hh"
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/* g++ didn't like older gtype.h gcc-only code path. */
|
|
Packit |
874993 |
#include <glib.h>
|
|
Packit |
874993 |
#if !GLIB_CHECK_VERSION(2,29,16)
|
|
Packit |
874993 |
#undef __GNUC__
|
|
Packit |
874993 |
#undef __GNUC_MINOR__
|
|
Packit |
874993 |
#define __GNUC__ 2
|
|
Packit |
874993 |
#define __GNUC_MINOR__ 6
|
|
Packit |
874993 |
#endif
|
|
Packit |
874993 |
|
|
Packit |
874993 |
#include "hb-gobject.h"
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/*** END file-header ***/
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/*** BEGIN file-production ***/
|
|
Packit |
874993 |
/* enumerations from "@filename@" */
|
|
Packit |
874993 |
/*** END file-production ***/
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/*** BEGIN value-header ***/
|
|
Packit |
874993 |
GType
|
|
Packit |
874993 |
@enum_name@_get_type (void)
|
|
Packit |
874993 |
{
|
|
Packit |
874993 |
static gsize type_id = 0;
|
|
Packit |
874993 |
|
|
Packit |
874993 |
if (g_once_init_enter (&type_id))
|
|
Packit |
874993 |
{
|
|
Packit |
874993 |
static const G@Type@Value values[] = {
|
|
Packit |
874993 |
/*** END value-header ***/
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/*** BEGIN value-production ***/
|
|
Packit |
874993 |
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
|
Packit |
874993 |
/*** END value-production ***/
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/*** BEGIN value-tail ***/
|
|
Packit |
874993 |
{ 0, NULL, NULL }
|
|
Packit |
874993 |
};
|
|
Packit |
874993 |
GType id =
|
|
Packit |
874993 |
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
|
Packit |
874993 |
g_once_init_leave (&type_id, id);
|
|
Packit |
874993 |
}
|
|
Packit |
874993 |
|
|
Packit |
874993 |
return type_id;
|
|
Packit |
874993 |
}
|
|
Packit |
874993 |
|
|
Packit |
874993 |
/*** END value-tail ***/
|