libtransistor
A userland library for the Nintendo Switch
|
Lists Inspired by the concepts of the Linux kernel list API. More...
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | trn_list_head_t |
Macros | |
#define | TRN_LIST_HEAD_INITIALIZER {.prev = NULL, .next = NULL} |
#define | trn_list_entry(type, field, head) ((type*) (((void*) (head)) - offsetof(type, field))) |
#define | trn_list_foreach(list, i) for(trn_list_head_t *i = (list)->next; i != NULL; i = i->next) |
Typedefs | |
typedef struct trn_list_head_t | trn_list_head_t |
Functions | |
void | trn_list_add_tail (trn_list_head_t *list, trn_list_head_t *item) |
void | trn_list_delink (trn_list_head_t *item) |
Lists Inspired by the concepts of the Linux kernel list API.