Changeset 02f45748 in mainline for uspace/srv/hid/display/main.c


Ignore:
Timestamp:
2019-12-10T10:07:43Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23e86c6
Parents:
df1a019
git-author:
Jiri Svoboda <jiri@…> (2019-12-09 18:07:30)
git-committer:
Jiri Svoboda <jiri@…> (2019-12-10 10:07:43)
Message:

Source display server events from input server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/main.c

    rdf1a019 r02f45748  
    5050#include "display.h"
    5151#include "dsops.h"
     52#include "input.h"
    5253#include "main.h"
    5354#include "output.h"
     
    6162        .ev_pending = display_client_ev_pending
    6263};
    63 
    64 static void display_kbd_event(void *arg, kbd_event_t *event)
    65 {
    66         ds_display_t *disp = (ds_display_t *) arg;
    67 
    68         ds_display_post_kbd_event(disp, event);
    69 }
    70 
    71 static void display_pos_event(void *arg, pos_event_t *event)
    72 {
    73         ds_display_t *disp = (ds_display_t *) arg;
    74 
    75         ds_display_post_pos_event(disp, event);
    76 }
    7764
    7865static void display_client_ev_pending(void *arg)
     
    10289                goto error;
    10390
    104 #if 0
    10591        rc = ds_input_open(disp);
    10692        if (rc != EOK)
    10793                goto error;
    108 #endif
    109         rc = ds_output_create(display_kbd_event, (void *) disp,
    110             display_pos_event, (void *) disp, &output);
     94
     95        rc = ds_output_create(&output);
    11196        if (rc != EOK)
    11297                goto error;
Note: See TracChangeset for help on using the changeset viewer.