Changeset 02f45748 in mainline
- Timestamp:
- 2019-12-10T10:07:43Z (5 years ago)
- 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)
- Location:
- uspace
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
rdf1a019 r02f45748 451 451 if (rc == EOK) { 452 452 fibril_sleep(1); 453 gui_start("/app/ gfxdemo");453 gui_start("/app/terminal"); 454 454 } 455 455 } -
uspace/srv/hid/display/main.c
rdf1a019 r02f45748 50 50 #include "display.h" 51 51 #include "dsops.h" 52 #include "input.h" 52 53 #include "main.h" 53 54 #include "output.h" … … 61 62 .ev_pending = display_client_ev_pending 62 63 }; 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 }77 64 78 65 static void display_client_ev_pending(void *arg) … … 102 89 goto error; 103 90 104 #if 0105 91 rc = ds_input_open(disp); 106 92 if (rc != EOK) 107 93 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); 111 96 if (rc != EOK) 112 97 goto error; -
uspace/srv/hid/display/meson.build
rdf1a019 r02f45748 34 34 'display.c', 35 35 'dsops.c', 36 'input.c', 36 37 'main.c', 37 38 'output.c', -
uspace/srv/hid/display/output.c
rdf1a019 r02f45748 44 44 #include "ddev.h" 45 45 #include "output.h" 46 47 #if 048 static void (*kbd_ev_handler)(void *, kbd_event_t *);49 static void *kbd_ev_arg;50 static void (*pos_ev_handler)(void *, pos_event_t *);51 static void *pos_ev_arg;52 53 static void on_keyboard_event(widget_t *widget, void *data)54 {55 printf("Keyboard event\n");56 kbd_ev_handler(kbd_ev_arg, (kbd_event_t *) data);57 }58 59 static void on_position_event(widget_t *widget, void *data)60 {61 pos_ev_handler(pos_ev_arg, (pos_event_t *) data);62 }63 #endif64 46 65 47 /** Check for new display devices. … … 140 122 /** Create display server output. 141 123 * 142 * @param kbd_event_handler143 * @param karg144 * @param pos_event_handler145 * @param parg146 124 * @param routput Place to store pointer to display server output object. 147 125 * @return EOK on success or an error code 148 126 */ 149 errno_t ds_output_create(void (*kbd_event_handler)(void *, kbd_event_t *), 150 void *karg, void (*pos_event_handler)(void *, pos_event_t *), 151 void *parg, ds_output_t **routput) 127 errno_t ds_output_create(ds_output_t **routput) 152 128 { 153 129 ds_output_t *output; -
uspace/srv/hid/display/output.h
rdf1a019 r02f45748 42 42 #include "types/display/output.h" 43 43 44 extern errno_t ds_output_create(void (*)(void *, kbd_event_t *), 45 void *, void (*)(void *, pos_event_t *), void *, ds_output_t **); 44 extern errno_t ds_output_create(ds_output_t **); 46 45 extern errno_t ds_output_start_discovery(ds_output_t *); 47 46 extern void ds_output_destroy(ds_output_t *);
Note:
See TracChangeset
for help on using the changeset viewer.