Blame gst/gstenumtypes.c.template
|
Packit Service |
963350 |
/*** BEGIN file-header ***/
|
|
Packit Service |
963350 |
#include "gst/gst_private.h"
|
|
Packit Service |
963350 |
#include <gst/gst.h>
|
|
Packit Service |
963350 |
#define C_ENUM(v) ((gint) v)
|
|
Packit Service |
963350 |
#define C_FLAGS(v) ((guint) v)
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** END file-header ***/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** BEGIN file-production ***/
|
|
Packit Service |
963350 |
/* enumerations from "@basename@" */
|
|
Packit Service |
963350 |
/*** END file-production ***/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** BEGIN value-header ***/
|
|
Packit Service |
963350 |
GType
|
|
Packit Service |
963350 |
@enum_name@_get_type (void)
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
static gsize id = 0;
|
|
Packit Service |
963350 |
static const G@Type@Value values[] = {
|
|
Packit Service |
963350 |
/*** END value-header ***/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** BEGIN value-production ***/
|
|
Packit Service |
963350 |
{ C_@TYPE@(@VALUENAME@), "@VALUENAME@", "@valuenick@" },
|
|
Packit Service |
963350 |
/*** END value-production ***/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** BEGIN value-tail ***/
|
|
Packit Service |
963350 |
{ 0, NULL, NULL }
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
if (g_once_init_enter (&id)) {
|
|
Packit Service |
963350 |
GType tmp = g_@type@_register_static ("@EnumName@", values);
|
|
Packit Service |
963350 |
g_once_init_leave (&id, tmp);
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
return (GType) id;
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** END value-tail ***/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** BEGIN file-tail ***/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*** END file-tail ***/
|