aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/builtin/lv_tlsf_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/builtin/lv_tlsf_private.h')
-rw-r--r--src/stdlib/builtin/lv_tlsf_private.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/stdlib/builtin/lv_tlsf_private.h b/src/stdlib/builtin/lv_tlsf_private.h
new file mode 100644
index 000000000..036e9d73e
--- /dev/null
+++ b/src/stdlib/builtin/lv_tlsf_private.h
@@ -0,0 +1,53 @@
+/**
+ * @file lv_tlsf_private.h
+ *
+ */
+
+#ifndef LV_TLSF_PRIVATE_H
+#define LV_TLSF_PRIVATE_H
+
+#if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*********************
+ * INCLUDES
+ *********************/
+
+#include "lv_tlsf.h"
+
+/*********************
+ * DEFINES
+ *********************/
+
+/**********************
+ * TYPEDEFS
+ **********************/
+
+typedef struct {
+#if LV_USE_OS
+ lv_mutex_t mutex;
+#endif
+ lv_tlsf_t tlsf;
+ size_t cur_used;
+ size_t max_used;
+ lv_ll_t pool_ll;
+} lv_tlsf_state_t;
+
+/**********************
+ * GLOBAL PROTOTYPES
+ **********************/
+
+/**********************
+ * MACROS
+ **********************/
+
+#ifdef __cplusplus
+} /*extern "C"*/
+#endif
+
+#endif /*LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN*/
+
+#endif /*LV_TLSF_PRIVATE_H*/