28 lines
709 B
C
28 lines
709 B
C
/* SPDX-License-Identifier: MIT */
|
|
/* Copyright (c) 2026 Oleksandr Zhylin */
|
|
|
|
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint32_t cur_y, cur_x;
|
|
uint32_t max_y, max_x;
|
|
} coordinates_t;
|
|
|
|
#define MAIN_UI_RESET(app) \
|
|
app->main_ui.ui = NULL; \
|
|
app->main_ui.cb_refresh = NULL; \
|
|
app->main_ui.cb_b_press = NULL; \
|
|
app->main_ui.b_keys = NULL;
|
|
|
|
|
|
struct action_key {
|
|
char *const key;
|
|
char *const title;
|
|
int const code;
|
|
int (*callback)(void *app, void *d_args);
|
|
};
|
|
|
|
#endif |