Changeset d31c3ea in mainline for uspace/srv/hid/output/port/chardev.c
- Timestamp:
- 2024-10-01T11:13:28Z (3 months ago)
- Branches:
- master
- Children:
- 6907f26
- Parents:
- 357d9dd
- git-author:
- Jiri Svoboda <jiri@…> (2024-09-30 19:13:18)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-10-01 11:13:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/port/chardev.c
r357d9dd rd31c3ea 65 65 static FIBRIL_CONDVAR_INITIALIZE(discovery_cv); 66 66 67 static void chardev_flush(void *arg)67 static void chardev_flush(void) 68 68 { 69 69 size_t nwr; 70 71 (void)arg;72 70 73 71 if (chardev_bused == 0) … … 83 81 { 84 82 if (chardev_bused == chardev_buf_size) 85 chardev_flush( NULL);83 chardev_flush(); 86 84 chardev_buf[chardev_bused++] = (uint8_t) ch; 87 85 } 88 86 89 static void chardev_putuchar( void *arg,char32_t ch)87 static void chardev_putuchar(char32_t ch) 90 88 { 91 89 char buf[STR_BOUNDS(1)]; … … 94 92 errno_t rc; 95 93 96 (void)arg;97 98 94 off = 0; 99 95 rc = chr_encode(ch, buf, &off, sizeof(buf)); … … 105 101 } 106 102 107 static void chardev_control_puts( void *arg,const char *str)103 static void chardev_control_puts(const char *str) 108 104 { 109 105 const char *p; … … 111 107 p = str; 112 108 while (*p != '\0') 113 chardev_putuchar( arg,*p++);109 chardev_putuchar(*p++); 114 110 } 115 111
Note:
See TracChangeset
for help on using the changeset viewer.