mirror of
https://github.com/flatpak/flatpak.git
synced 2026-09-24 06:05:52 -04:00
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):
25 lines
531 B
Plaintext
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 ***/
|