Files
flatpak/common/flatpak-enum-types.h.template
Sebastian Wick dd86b3cf6b enum-types: Explicitly set the enum nick in some cases
glib-mkenums fails to generate proper nicks and strips away th non- and
no-. Fix those cases manually.

Also fix the header guard while at it.

Technically this is an API break, but the API does exactly the opposite
of what it promises, so if anyone depended on this, we probably would
have received a bug report. Let's take the risk and just change it.
2026-07-27 13:41:00 +00:00

25 lines
535 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 /* __FLATPAK_ENUM_TYPES_H__ */
/*** END file-tail ***/