Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d1dabe1f in mainline


Ignore:
Timestamp:
2009-04-03T07:55:23Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
68ad9d2
Parents:
043eca0
Message:

Unicode support for input devices

Location:
kernel/generic
Files:
2 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,
  • kernel/generic/src/console/chardev.c

    r043eca0 rd1dabe1f  
    6060 *
    6161 */
    62 void indev_push_character(indev_t *indev, uint8_t ch)
     62void indev_push_character(indev_t *indev, wchar_t ch)
    6363{
    6464        ASSERT(indev);
Note: See TracChangeset for help on using the changeset viewer.