Changes in kernel/generic/include/console/chardev.h [a71c158:da1bafb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
ra71c158 rda1bafb 37 37 38 38 #include <adt/list.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 #include <synch/waitq.h> 41 41 #include <synch/spinlock.h> … … 53 53 /** Character input device. */ 54 54 typedef struct indev { 55 c har *name;55 const char *name; 56 56 waitq_t wq; 57 57 58 58 /** Protects everything below. */ 59 SPINLOCK_DECLARE(lock);59 IRQ_SPINLOCK_DECLARE(lock); 60 60 wchar_t buffer[INDEV_BUFLEN]; 61 61 size_t counter; … … 81 81 /** Character output device. */ 82 82 typedef struct outdev { 83 c har *name;83 const char *name; 84 84 85 85 /** Protects everything below. */ … … 95 95 } outdev_t; 96 96 97 extern void indev_initialize(c har *name, indev_t *indev,98 indev_operations_t * op);99 extern void indev_push_character(indev_t * indev, wchar_t ch);100 extern wchar_t indev_pop_character(indev_t * indev);97 extern void indev_initialize(const char *, indev_t *, 98 indev_operations_t *); 99 extern void indev_push_character(indev_t *, wchar_t); 100 extern wchar_t indev_pop_character(indev_t *); 101 101 102 extern void outdev_initialize(c har *name, outdev_t *outdev,103 outdev_operations_t * op);102 extern void outdev_initialize(const char *, outdev_t *, 103 outdev_operations_t *); 104 104 105 extern bool check_poll(indev_t * indev);105 extern bool check_poll(indev_t *); 106 106 107 107 #endif /* KERN_CHARDEV_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.