summaryrefslogtreecommitdiff
path: root/lib/src/turns-turn-order.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/turns-turn-order.h')
-rw-r--r--lib/src/turns-turn-order.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/src/turns-turn-order.h b/lib/src/turns-turn-order.h
index 91220b9..5e34405 100644
--- a/lib/src/turns-turn-order.h
+++ b/lib/src/turns-turn-order.h
@@ -47,7 +47,8 @@ G_DECLARE_FINAL_TYPE(TurnsTurnOrder, turns_turn_order, TURNS, TURN_ORDER, GObjec
*
* Returns: (transfer full): a new `TurnsTurnOrder`.
*/
-TurnsTurnOrder * turns_turn_order_new(void) G_GNUC_WARN_UNUSED_RESULT;
+G_GNUC_WARN_UNUSED_RESULT
+TurnsTurnOrder * turns_turn_order_new(void);
/**
* turns_turn_order_add:
@@ -75,12 +76,22 @@ void turns_turn_order_clear(TurnsTurnOrder * self);
void turns_turn_order_remove_at(TurnsTurnOrder * self, guint position);
/**
+ * turns_turn_order_get_empty: (get-property empty):
+ * @self: a turn order.
+ *
+ * Gets whether the turn order is empty.
+ */
+G_GNUC_WARN_UNUSED_RESULT
+gboolean turns_turn_order_get_empty(TurnsTurnOrder const * self);
+
+/**
* turns_turn_order_get_participant_count:
* @self: a turn order.
*
* Gets the number of participants in the turn order.
*/
-gsize turns_turn_order_get_participant_count(TurnsTurnOrder const * self) G_GNUC_WARN_UNUSED_RESULT;
+G_GNUC_WARN_UNUSED_RESULT
+gsize turns_turn_order_get_participant_count(TurnsTurnOrder const * self);
/**
* turns_turn_order_get_running: (get-property running):
@@ -88,7 +99,8 @@ gsize turns_turn_order_get_participant_count(TurnsTurnOrder const * self) G_GNUC
*
* Gets whether the turn order is currently running.
*/
-gboolean turns_turn_order_get_running(TurnsTurnOrder const * self) G_GNUC_WARN_UNUSED_RESULT;
+G_GNUC_WARN_UNUSED_RESULT
+gboolean turns_turn_order_get_running(TurnsTurnOrder const * self);
/**
* turns_turn_order_get_sort_mode: (get-property sort-mode):
@@ -96,7 +108,8 @@ gboolean turns_turn_order_get_running(TurnsTurnOrder const * self) G_GNUC_WARN_U
*
* Gets whether higher priority values are sorted before or after lower ones.
*/
-TurnsTurnOrderSortMode turns_turn_order_get_sort_mode(TurnsTurnOrder const * self) G_GNUC_WARN_UNUSED_RESULT;
+G_GNUC_WARN_UNUSED_RESULT
+TurnsTurnOrderSortMode turns_turn_order_get_sort_mode(TurnsTurnOrder const * self);
/**
* turns_turn_order_set_sort_mode: (set-property sort-mode):