summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 15:46:41 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 15:46:41 (EDT)
commit6e335af1690f1513160e9b340a8b6b27fd9344d5 (patch)
tree37121f891106847fe288e879da3838ee8f027f8d
parent5a93aca93a6ad44451a894dd1d514ed8957d9eb5 (diff)
downloadmarquee-6e335af1690f1513160e9b340a8b6b27fd9344d5.zip
marquee-6e335af1690f1513160e9b340a8b6b27fd9344d5.tar.gz
marquee-6e335af1690f1513160e9b340a8b6b27fd9344d5.tar.bz2
mq_tree_first_child(): New macro
-rw-r--r--src/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tree.h b/src/tree.h
index 4d06a65..4181d7c 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -69,6 +69,8 @@ mq_tree_remove(MqTree *node);
#define mq_tree_root(node) ((node) ? (((MqTree *) (node))->root) : NULL)
#define mq_tree_previous(node) ((node) ? (((MqTree *) (node))->prev) : NULL)
#define mq_tree_next(node) ((node) ? (((MqTree *) (node))->prev) : NULL)
+#define mq_tree_first_child(node) \
+ ((node) ? (((MqTree *) (node))->first_child) : NULL)
MqTree *
mq_tree_seek(MqTree *node, gint offset);