refactor(terminal): only remove const qualifier when necessary (#26386)

This commit is contained in:
zeertzjq
2023-12-04 20:29:51 +08:00
committed by GitHub
parent cf612c64b0
commit 66f1563c7a
4 changed files with 26 additions and 24 deletions

View File

@@ -4,7 +4,7 @@
#include <stdint.h>
typedef struct terminal Terminal;
typedef void (*terminal_write_cb)(char *buffer, size_t size, void *data);
typedef void (*terminal_write_cb)(const char *buffer, size_t size, void *data);
typedef void (*terminal_resize_cb)(uint16_t width, uint16_t height, void *data);
typedef void (*terminal_close_cb)(void *data);