Changeset d31c3ea in mainline for uspace/srv/hid/output/port/chardev.c


Ignore:
Timestamp:
2024-10-01T11:13:28Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Group vt callbacks into a callback structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/port/chardev.c

    r357d9dd rd31c3ea  
    6565static FIBRIL_CONDVAR_INITIALIZE(discovery_cv);
    6666
    67 static void chardev_flush(void *arg)
     67static void chardev_flush(void)
    6868{
    6969        size_t nwr;
    70 
    71         (void)arg;
    7270
    7371        if (chardev_bused == 0)
     
    8381{
    8482        if (chardev_bused == chardev_buf_size)
    85                 chardev_flush(NULL);
     83                chardev_flush();
    8684        chardev_buf[chardev_bused++] = (uint8_t) ch;
    8785}
    8886
    89 static void chardev_putuchar(void *arg, char32_t ch)
     87static void chardev_putuchar(char32_t ch)
    9088{
    9189        char buf[STR_BOUNDS(1)];
     
    9492        errno_t rc;
    9593
    96         (void)arg;
    97 
    9894        off = 0;
    9995        rc = chr_encode(ch, buf, &off, sizeof(buf));
     
    105101}
    106102
    107 static void chardev_control_puts(void *arg, const char *str)
     103static void chardev_control_puts(const char *str)
    108104{
    109105        const char *p;
     
    111107        p = str;
    112108        while (*p != '\0')
    113                 chardev_putuchar(arg, *p++);
     109                chardev_putuchar(*p++);
    114110}
    115111
Note: See TracChangeset for help on using the changeset viewer.