mirror of
https://github.com/flatpak/flatpak.git
synced 2025-12-31 11:58:03 -05:00
`@filename@` expands to the relative or absolute path to the source file, which varies between build systems and build directories. `@basename@` expands to the basename of the file, which stays constant across more build configurations. Signed-off-by: Simon McVittie <smcv@collabora.com>
41 lines
960 B
Plaintext
41 lines
960 B
Plaintext
/*** BEGIN file-header ***/
|
|
#include "config.h"
|
|
#include <flatpak-utils-private.h>
|
|
#include <flatpak.h>
|
|
#include <flatpak-enum-types.h>
|
|
#include <gio/gio.h>
|
|
|
|
/*** END file-header ***/
|
|
|
|
/*** BEGIN file-production ***/
|
|
/* enumerations from "@basename@" */
|
|
/*** END file-production ***/
|
|
|
|
/*** BEGIN value-header ***/
|
|
GType
|
|
@enum_name@_get_type (void)
|
|
{
|
|
static gsize static_g_@type@_type_id = 0;
|
|
|
|
if (g_once_init_enter (&static_g_@type@_type_id))
|
|
{
|
|
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_define_type_id =
|
|
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
|
g_once_init_leave (&static_g_@type@_type_id, g_define_type_id);
|
|
}
|
|
|
|
return static_g_@type@_type_id;
|
|
}
|
|
|
|
/*** END value-tail ***/
|