Skip to content

Commit

Permalink
core/dlist: Add enum to specify list head or tail
Browse files Browse the repository at this point in the history
This can be used by higher level code to indicate if an
insertion should be done at the head or tail of a list.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
  • Loading branch information
shefty authored and aingerson committed Jul 20, 2021
1 parent 885e643 commit c3ee423
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ofi_list.h
Expand Up @@ -45,6 +45,12 @@
#include <ofi_signal.h>
#include <ofi_lock.h>


enum ofi_list_end {
OFI_LIST_TAIL,
OFI_LIST_HEAD
};

/*
* Double-linked list
*/
Expand Down

0 comments on commit c3ee423

Please sign in to comment.