libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Functions
list.h File Reference

Lists Inspired by the concepts of the Linux kernel list API. More...

#include <stddef.h>
Include dependency graph for list.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Lists Inspired by the concepts of the Linux kernel list API.