summaryrefslogtreecommitdiff
path: root/lib/src/turns-turn-order.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/turns-turn-order.c')
-rw-r--r--lib/src/turns-turn-order.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/src/turns-turn-order.c b/lib/src/turns-turn-order.c
index abc22c4..552b200 100644
--- a/lib/src/turns-turn-order.c
+++ b/lib/src/turns-turn-order.c
@@ -10,10 +10,12 @@
#include <gio/gio.h>
#include <glib-object.h>
#include <glib.h>
+#include <stdint.h>
enum
{
PROP_EMPTY = 1,
+ PROP_PARTICIPANT_COUNT,
PROP_RUNNING,
PROP_SORT_MODE,
N_PROPERTIES,
@@ -111,6 +113,9 @@ static void turns_turn_order_get_property(GObject * self, guint id, GValue * val
case PROP_EMPTY:
g_value_set_boolean(value, turns_turn_order_get_empty(instance));
return;
+ case PROP_PARTICIPANT_COUNT:
+ g_value_set_uint64(value, turns_turn_order_get_participant_count(instance));
+ return;
case PROP_RUNNING:
g_value_set_boolean(value, turns_turn_order_get_running(instance));
return;
@@ -166,6 +171,14 @@ static void turns_turn_order_class_init(TurnsTurnOrderClass * klass)
TRUE,
G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
+ properties[PROP_PARTICIPANT_COUNT] = g_param_spec_uint64("participant-count",
+ "Participant count",
+ "The number of participants in the turn order.",
+ 0,
+ UINT64_MAX,
+ 0,
+ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
+
properties[PROP_RUNNING] = g_param_spec_boolean("running",
"Running",
"Whether or not the turn order is running (e.g. has been started)",