Changeset dc5c303 in mainline for uspace/srv/hid/console/console.c


Ignore:
Timestamp:
2023-12-28T13:59:23Z (14 months ago)
Author:
GitHub <noreply@…>
Children:
6b66de6b
Parents:
42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
git-committer:
GitHub <noreply@…> (2023-12-28 13:59:23)
Message:

Merge branch 'master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/console.c

    r42c2e65 rdc5c303  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * Copyright (c) 2011 Martin Decky
    44 * All rights reserved.
     
    3737#include <stdio.h>
    3838#include <adt/prodcons.h>
     39#include <io/console.h>
    3940#include <io/input.h>
    4041#include <ipc/vfs.h>
     
    8889        con_srvs_t srvs;         /**< Console service setup */
    8990} console_t;
     91
     92static loc_srv_t *console_srv;
    9093
    9194/** Input server proxy */
     
    902905        /* Register server */
    903906        async_set_fallback_port_handler(client_connection, NULL);
    904         rc = loc_server_register(NAME);
     907        rc = loc_server_register(NAME, &console_srv);
    905908        if (rc != EOK) {
    906909                printf("%s: Unable to register server (%s)\n", NAME,
     
    952955                        snprintf(vc, LOC_NAME_MAXLEN, "%s/vc%zu", NAMESPACE, i);
    953956
    954                         if (loc_service_register(vc, &consoles[i].dsid) != EOK) {
     957                        if (loc_service_register(console_srv, vc,
     958                            &consoles[i].dsid) != EOK) {
    955959                                printf("%s: Unable to register device %s\n", NAME, vc);
    956960                                return false;
Note: See TracChangeset for help on using the changeset viewer.