queue: add g_queue_insert_before_link() and g_queue_insert_after_link()

This adds two new helpers that allow for inserting pre-allocated GList
elements to the queue similar to existing helpers. This may be advantagous
in some situations such as statically allocated GList elements.
This commit is contained in:
Christian Hergert
2019-01-07 12:24:42 -08:00
parent b0132bb64f
commit a4c3feb835
4 changed files with 114 additions and 0 deletions

View File

@@ -2390,7 +2390,9 @@ g_queue_index
g_queue_remove
g_queue_remove_all
g_queue_insert_before
g_queue_insert_before_link
g_queue_insert_after
g_queue_insert_after_link
g_queue_insert_sorted
g_queue_push_head_link
g_queue_push_tail_link