From f61df0b33ea2a2de064f1fa2a9cde191b790a5ba Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 19 May 2025 16:28:02 +0200 Subject: lib: rescope enums --- lib/src/turnsmm/participant.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/src/turnsmm/participant.hpp') diff --git a/lib/src/turnsmm/participant.hpp b/lib/src/turnsmm/participant.hpp index 53a7787..b23fd42 100644 --- a/lib/src/turnsmm/participant.hpp +++ b/lib/src/turnsmm/participant.hpp @@ -2,7 +2,7 @@ #define TURNSMM_PARTICIPANT_HPP #include "turns-participant.h" -#include "turnsmm/enums.hpp" +#include "turnsmm/enum_helpers.hpp" #include #include @@ -10,6 +10,7 @@ #include #include +#include namespace Turns { @@ -22,6 +23,14 @@ namespace Turns using CppClassType = class Participant_Class; using CppObjectType = Participant; + enum struct Disposition : guint + { + Neutral, + Friendly, + Hostile, + Secret, + }; + auto static get_base_type() -> GType; auto static get_type() -> GType; @@ -68,6 +77,8 @@ namespace Turns namespace Glib { + TURNS_DECLARE_ENUM_VALUE_SPECIALIZATION(Participant::Disposition); + auto wrap(TurnsParticipant * object, bool copy = false) -> Glib::RefPtr; } // namespace Glib -- cgit v1.2.3