summaryrefslogtreecommitdiff
path: root/lib/src/turns-participant.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/turns-participant.h')
-rw-r--r--lib/src/turns-participant.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/src/turns-participant.h b/lib/src/turns-participant.h
index 3ddfaa6..f951ddb 100644
--- a/lib/src/turns-participant.h
+++ b/lib/src/turns-participant.h
@@ -1,7 +1,7 @@
#ifndef TURNS_PARTICIPANT_H
#define TURNS_PARTICIPANT_H
-#include "turns-disposition.h"
+#include "turns-enums.h" // IWYU pragma: export
#include <glib-object.h>
#include <glib.h>
@@ -9,6 +9,14 @@
G_BEGIN_DECLS
+typedef enum
+{
+ TURNS_PARTICIPANT_DISPOSITION_NEUTRAL,
+ TURNS_PARTICIPANT_DISPOSITION_FRIENDLY,
+ TURNS_PARTICIPANT_DISPOSITION_HOSTILE,
+ TURNS_PARTICIPANT_DISPOSITION_SECRET,
+} TurnsParticipantDisposition;
+
#define TURNS_TYPE_PARTICIPANT turns_participant_get_type()
G_DECLARE_FINAL_TYPE(TurnsParticipant, turns_participant, TURNS, PARTICIPANT, GObject)
@@ -29,7 +37,8 @@ TurnsParticipant * turns_participant_new(void) G_GNUC_WARN_UNUSED_RESULT;
* @param priority The priority of the new instance.
* @param disposition The disposition of the new instance.
*/
-TurnsParticipant * turns_participant_new_with(gchar const * name, gfloat priority, TurnsDisposition disposition) G_GNUC_WARN_UNUSED_RESULT;
+TurnsParticipant *
+turns_participant_new_with(gchar const * name, gfloat priority, TurnsParticipantDisposition disposition) G_GNUC_WARN_UNUSED_RESULT;
/**
* @brief Get the active state of a participant.
@@ -53,7 +62,7 @@ gboolean turns_participant_get_defeated(TurnsParticipant const * self);
* @param self A Participant instance. The value *must not* be NULL.
* @return The disposition of the instance.
*/
-TurnsDisposition turns_participant_get_disposition(TurnsParticipant const * self);
+TurnsParticipantDisposition turns_participant_get_disposition(TurnsParticipant const * self);
/**
* @brief Get the name of a participant.
@@ -93,7 +102,7 @@ void turns_participant_set_defeated(TurnsParticipant * self, gboolean value);
* @param self A Participant instance. The value *must not* be NULL.
* @param value The new disposition.
*/
-void turns_participant_set_disposition(TurnsParticipant * self, TurnsDisposition value);
+void turns_participant_set_disposition(TurnsParticipant * self, TurnsParticipantDisposition value);
/**
* @brief Set the name of a participant.