Changeset 28a5ebd in mainline for kernel/generic/include/console
- Timestamp:
- 2020-06-18T15:39:50Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- Location:
- kernel/generic/include/console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
r4f663f3e r28a5ebd 55 55 typedef struct { 56 56 /** Read character directly from device, assume interrupts disabled. */ 57 wchar_t (*poll)(struct indev *);57 char32_t (*poll)(struct indev *); 58 58 59 59 /** Signal out-of-band condition. */ … … 68 68 /** Protects everything below. */ 69 69 IRQ_SPINLOCK_DECLARE(lock); 70 wchar_t buffer[INDEV_BUFLEN];70 char32_t buffer[INDEV_BUFLEN]; 71 71 size_t counter; 72 72 … … 82 82 typedef struct { 83 83 /** Write character to output. */ 84 void (*write)(struct outdev *, wchar_t);84 void (*write)(struct outdev *, char32_t); 85 85 86 86 /** Redraw any previously cached characters. */ … … 112 112 extern void indev_initialize(const char *, indev_t *, 113 113 indev_operations_t *); 114 extern void indev_push_character(indev_t *, wchar_t);115 extern wchar_t indev_pop_character(indev_t *);114 extern void indev_push_character(indev_t *, char32_t); 115 extern char32_t indev_pop_character(indev_t *); 116 116 extern void indev_signal(indev_t *, indev_signal_t); 117 117 -
kernel/generic/include/console/console.h
r4f663f3e r28a5ebd 57 57 extern outdev_t *stdout; 58 58 59 extern void early_put wchar(wchar_t);59 extern void early_putuchar(char32_t); 60 60 61 61 extern indev_t *stdin_wire(void); … … 66 66 extern void kio_update(void *); 67 67 extern void kio_flush(void); 68 extern void kio_push_char(const wchar_t);68 extern void kio_push_char(const char32_t); 69 69 SPINLOCK_EXTERN(kio_lock); 70 70 71 extern wchar_t getc(indev_t *indev);71 extern char32_t getc(indev_t *indev); 72 72 extern size_t gets(indev_t *indev, char *buf, size_t buflen); 73 73 extern sys_errno_t sys_kio(int cmd, uspace_addr_t buf, size_t size);
Note:
See TracChangeset
for help on using the changeset viewer.