aboutsummaryrefslogtreecommitdiff
path: root/src/misc/lv_rb_private.h
blob: 327b7b0be1b8f289ad1f0ee06e5c90096e00671a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
 * @file lv_rb_private.h
 *
 */

#ifndef LV_RB_PRIVATE_H
#define LV_RB_PRIVATE_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#include "lv_rb.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/

struct lv_rb_node_t {
    struct lv_rb_node_t * parent;
    struct lv_rb_node_t * left;
    struct lv_rb_node_t * right;
    lv_rb_color_t color;
    void * data;
};

struct lv_rb_t {
    lv_rb_node_t * root;
    lv_rb_compare_t compare;
    size_t size;
};


/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**********************
 *      MACROS
 **********************/

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LV_RB_PRIVATE_H*/