summaryrefslogtreecommitdiff
path: root/lib/lvgl/src/drivers/nuttx/lv_nuttx_libuv.h
blob: 0799e67b129cc9e35d4c5dc722be1de7deb0ed0d (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
55
56
57
58
59
60
61
62
63
64
65
66
/**
 * @file lv_nuttx_libuv.h
 *
 */

#ifndef LV_NUTTX_LIBUV_H
#define LV_NUTTX_LIBUV_H

#ifdef __cplusplus
extern "C" {
#endif

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

#include "../../display/lv_display.h"
#include "../../indev/lv_indev.h"

#if LV_USE_NUTTX

#if LV_USE_NUTTX_LIBUV

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

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

typedef struct {
    void * loop;
    lv_display_t * disp;
    lv_indev_t * indev;
} lv_nuttx_uv_t;

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

/**
 * Initialize the uv_loop using the provided configuration information.
 * @param uv_info Pointer to the lv_nuttx_uv_t structure to be initialized.
 */
void * lv_nuttx_uv_init(lv_nuttx_uv_t * uv_info);

/**
 * Deinitialize the uv_loop configuration for NuttX porting layer.
 * @param data Pointer to user data.
 */
void lv_nuttx_uv_deinit(void ** data);

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

#endif /*LV_USE_NUTTX_LIBUV*/

#endif /*LV_USE_NUTTX*/

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

#endif /*LV_NUTTX_LIBUV_H*/