Changeset 5132379 in mainline
- Timestamp:
- 2024-10-03T21:31:52Z (6 weeks ago)
- Branches:
- master
- Children:
- 47d060d
- Parents:
- e273e9e
- Location:
- uspace/srv/hid/remcons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/remcons.c
re273e9e r5132379 34 34 */ 35 35 36 #include <adt/ prodcons.h>36 #include <adt/list.h> 37 37 #include <as.h> 38 38 #include <async.h> … … 369 369 size_t nread; 370 370 371 while (list_empty(&remcons->in_events .list)) {371 while (list_empty(&remcons->in_events)) { 372 372 char next_byte = 0; 373 373 … … 380 380 } 381 381 382 link_t *link = prodcons_consume(&remcons->in_events); 382 link_t *link = list_first(&remcons->in_events); 383 list_remove(link); 384 383 385 remcons_event_t *tmp = list_get_instance(link, remcons_event_t, link); 384 386 … … 591 593 assert(down); 592 594 assert(up); 593 prodcons_produce(&remcons->in_events, &down->link);594 prodcons_produce(&remcons->in_events, &up->link);595 list_append(&down->link, &remcons->in_events); 596 list_append(&up->link, &remcons->in_events); 595 597 } 596 598 … … 611 613 remcons->enable_rgb = !no_ctl && !no_rgb; 612 614 remcons->user = user; 613 prodcons_initialize(&remcons->in_events);615 list_initialize(&remcons->in_events); 614 616 615 617 if (remcons->enable_ctl) { -
uspace/srv/hid/remcons/remcons.h
re273e9e r5132379 37 37 #define REMCONS_H_ 38 38 39 #include <adt/ prodcons.h>39 #include <adt/list.h> 40 40 #include <io/kbd_event.h> 41 41 #include <stdbool.h> … … 57 57 bool curs_visible; /**< cursor is visible */ 58 58 59 /** Producer-consumerof remcons_event_t. */60 prodcons_t in_events;59 /** List of remcons_event_t. */ 60 list_t in_events; 61 61 } remcons_t; 62 62
Note:
See TracChangeset
for help on using the changeset viewer.