C Tool Box 0.1.0
Loading...
Searching...
No Matches
ctb_DNode.h
Go to the documentation of this file.
1/**
2 * @file
3 */
4#ifndef CTB_DNODE_H
5#define CTB_DNODE_H
6
7/**
8 * @brief Doubly linked node type
9 */
10typedef struct ctb_DNode ctb_DNode_t;
11
12/**
13 * @brief Doubly linked node data structure
14 */
15struct ctb_DNode {
16 ctb_DNode_t * next; /**< Pointer to the next node */
17 ctb_DNode_t * prev; /**< Pointer to the previous node */
18};
19
20/**
21 * @brief Initializes a doubly linked node
22 *
23 * @param self Pointer to a doubly linked node
24 * @return Pointer to the initialized doubly linked node
25 */
27
28/**
29 * @brief Returns the next node
30 *
31 * @param self Pointer to a doubly linked node
32 * @return Pointer to the next node
33 */
35
36/**
37 * @brief Returns the previous node
38 *
39 * @param self Pointer to a doubly linked node
40 * @return Pointer to the previous node
41 */
43
44#endif // CTB_DNODE_H
ctb_DNode_t * ctb_DNode_getPrev(ctb_DNode_t *const self)
Returns the previous node.
Definition ctb_DNode.c:18
ctb_DNode_t * ctb_DNode_init(ctb_DNode_t *const self)
Initializes a doubly linked node.
Definition ctb_DNode.c:5
ctb_DNode_t * ctb_DNode_getNext(ctb_DNode_t *const self)
Returns the next node.
Definition ctb_DNode.c:12
Doubly linked node data structure.
Definition ctb_DNode.h:15
ctb_DNode_t * next
Definition ctb_DNode.h:16
ctb_DNode_t * prev
Definition ctb_DNode.h:17