Files
flatpak/common/flatpak-enum-types.h.template
T
Maximiliano Sandoval 3216f8eaf8 common: Stop using G_GNUC_CONST in _get_type funcs
As per g_type_ensure's documentation it is technically incorrect to mark
_get_type fns with G_GNUC_CONST since they have side-effects on their
first run.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5223 for more
details.

(cherry picked from commit 59f9a7729f):
2026-08-03 17:22:46 -04:00

25 lines
531 B
Plaintext

/*** BEGIN file-header ***/
#ifndef __FLATPAK_ENUM_TYPES_H__
#define __FLATPAK_ENUM_TYPES_H__
#include <glib-object.h>
G_BEGIN_DECLS
/*** END file-header ***/
/*** BEGIN file-production ***/
/* enumerations from "@basename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
FLATPAK_EXTERN GType @enum_name@_get_type (void);
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
/*** END value-header ***/
/*** BEGIN file-tail ***/
G_END_DECLS
#endif /* __GIO_ENUM_TYPES_H__ */
/*** END file-tail ***/