Ignore:
Timestamp:
2009-04-03T07:55:23Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68ad9d2
Parents:
043eca0
Message:

Unicode support for input devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/console/chardev.h

    r043eca0 rd1dabe1f  
    4747typedef struct {
    4848        /** Read character directly from device, assume interrupts disabled. */
    49         char (* poll)(struct indev *);
     49        wchar_t (* poll)(struct indev *);
    5050} indev_operations_t;
    5151
     
    5757        /** Protects everything below. */
    5858        SPINLOCK_DECLARE(lock);
    59         uint8_t buffer[INDEV_BUFLEN];
     59        wchar_t buffer[INDEV_BUFLEN];
    6060        count_t counter;
    6161       
     
    7272typedef struct {
    7373        /** Write character to output. */
    74         void (* write)(struct outdev *, wchar_t c, bool silent);
     74        void (* write)(struct outdev *, wchar_t, bool);
    7575} outdev_operations_t;
    7676
     
    8989extern void indev_initialize(char *name, indev_t *indev,
    9090    indev_operations_t *op);
    91 extern void indev_push_character(indev_t *indev, uint8_t ch);
     91extern void indev_push_character(indev_t *indev, wchar_t ch);
    9292
    9393extern void outdev_initialize(char *name, outdev_t *outdev,
Note: See TracChangeset for help on using the changeset viewer.