mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
680f63a48c
The cogl.h header is meant to be the public header for including the 1.x api used by Clutter so we should stop using that as a convenient way to include all likely prototypes and typedefs. Actually we already do a good job of listing the specific headers we depend on in each of the .c files we have so mostly this patch just strip out the redundant includes for cogl.h with a few fixups where that broke the build. Reviewed-by: Neil Roberts <neil@linux.intel.com>
41 lines
915 B
C
41 lines
915 B
C
/*** BEGIN file-header ***/
|
|
#include "cogl-enum-types.h"
|
|
/*** END file-header ***/
|
|
|
|
/*** BEGIN file-production ***/
|
|
|
|
/* enumerations from "@filename@" */
|
|
#include "@filename@"
|
|
|
|
/*** END file-production ***/
|
|
|
|
/*** BEGIN value-header ***/
|
|
GType
|
|
@enum_name@_get_type (void)
|
|
{
|
|
static volatile gsize g_enum_type_id__volatile = 0;
|
|
|
|
if (g_once_init_enter (&g_enum_type_id__volatile))
|
|
{
|
|
static const G@Type@Value values[] = {
|
|
/*** END value-header ***/
|
|
|
|
/*** BEGIN value-production ***/
|
|
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
|
/*** END value-production ***/
|
|
|
|
/*** BEGIN value-tail ***/
|
|
{ 0, NULL, NULL }
|
|
};
|
|
GType g_enum_type_id;
|
|
|
|
g_enum_type_id =
|
|
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
|
|
|
g_once_init_leave (&g_enum_type_id__volatile, g_enum_type_id);
|
|
}
|
|
|
|
return g_enum_type_id__volatile;
|
|
}
|
|
/*** END value-tail ***/
|