2
3
4
5
6
7
8
9
10
12#ifndef GIMBAL_LINKED_LIST_H
13#define GIMBAL_LINKED_LIST_H
15#include "../core/gimbal_decls.h"
18#define GBL_LINKED_LIST_NODE_INITIALIZER() { .pNext = NULL
}
19#define GBL_LINKED_LIST_NODE(name) GblLinkedListNode name = { .pNext = &name }
20#define GBL_LINKED_LIST_ENTRY(node, structure, field) GBL_CONTAINER_OF(node, structure, field)
22#define GBL_SELF_TYPE GblLinkedListNode
24typedef int (*GblLinkedListCmpFn)(
const void* pA,
const void* pb,
void* pClosure);
29
30
57 GblLinkedListCmpFn pCmpFn,
#define GBL_CONTAINER_OF(ptr, type, member)
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
Intrustive singly linked list structure with vector-style API.