55 lines
814 B
C
55 lines
814 B
C
/**
|
|
* @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*/
|