diff options
author | jolsa@redhat.com <jolsa@redhat.com> | 2011-10-21 11:10:51 +0200 |
---|---|---|
committer | Jiri Olsa <Jiri Olsa jolsa@redhat.com> | 2011-11-24 21:20:27 +0100 |
commit | 8967d2b09abc5f3e2bace9f6f14e1cfef8e47030 (patch) | |
tree | f5d4a59b81327608e08c4f1d7b386b5e81e93ff8 /src/list.h | |
parent | 27b90e3d32a6c311fca017f55d0fb8e2a1bd451e (diff) | |
download | latrace-8967d2b09abc5f3e2bace9f6f14e1cfef8e47030.tar.gz latrace-8967d2b09abc5f3e2bace9f6f14e1cfef8e47030.tar.xz latrace-8967d2b09abc5f3e2bace9f6f14e1cfef8e47030.zip |
error simulation: automation application part
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -62,6 +62,13 @@ static inline void lt_list_del(struct lt_list_head *obj) obj->prev->next = obj->next; } +static inline void lt_list_move_tail(struct lt_list_head *list, + struct lt_list_head *head) +{ + lt_list_del(list); + lt_list_add_tail(list, head); +} + static inline int lt_list_empty(struct lt_list_head *head) { return head->next == head; |