diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-12 17:02:36 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-12 17:02:36 +0200 |
| commit | 97c74a7c43bcc7e0551a967c6fa2720e9cb58efb (patch) | |
| tree | c2ad9a76dbaf788bd8fdb41e5b18b75b7f7e3298 /lib/src/turns-participant.h | |
| parent | 2618066ba0b9e7c490797821dca4d19b48a09256 (diff) | |
| download | turns-97c74a7c43bcc7e0551a967c6fa2720e9cb58efb.tar.xz turns-97c74a7c43bcc7e0551a967c6fa2720e9cb58efb.zip | |
lib: add active and defeated properties to Turns.Participant
Diffstat (limited to 'lib/src/turns-participant.h')
| -rw-r--r-- | lib/src/turns-participant.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/src/turns-participant.h b/lib/src/turns-participant.h index a2af8d6..a0e0d98 100644 --- a/lib/src/turns-participant.h +++ b/lib/src/turns-participant.h @@ -32,6 +32,22 @@ TurnsParticipant * turns_participant_new() G_GNUC_WARN_UNUSED_RESULT; TurnsParticipant * turns_participant_new_with(gchar const * name, gfloat priority, TurnsDisposition disposition) G_GNUC_WARN_UNUSED_RESULT; /** + * @brief Get the active state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @return The active state of the instance. + */ +gboolean turns_participant_get_active(TurnsParticipant const * self); + +/** + * @brief Get the defeated state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @return The defeated state of the instance. + */ +gboolean turns_participant_get_defeated(TurnsParticipant const * self); + +/** * @brief Get the disposition of a participant. * * @param self A Participant instance. The value *must not* be NULL. @@ -56,6 +72,22 @@ gchar const * turns_participant_get_name(TurnsParticipant const * self); gfloat turns_participant_get_priority(TurnsParticipant const * self); /** + * @brief Set the active state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @return The new active state. + */ +void turns_participant_set_active(TurnsParticipant * self, gboolean value); + +/** + * @brief Set the defeated state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @param value The new defeated state. + */ +void turns_participant_set_defeated(TurnsParticipant * self, gboolean value); + +/** * @brief Set the disposition of a participant. * * @param self A Participant instance. The value *must not* be NULL. |
