Changeset 959b7ec in mainline
- Timestamp:
- 2019-11-06T18:10:54Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e422ff6
- Parents:
- 648e2ac
- Location:
- uspace
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/include/disp_srv.h
r648e2ac r959b7ec 56 56 57 57 extern void display_conn(ipc_call_t *, display_srv_t *); 58 extern void display_srv_initialize(display_srv_t *); 58 59 extern void display_srv_ev_pending(display_srv_t *); 59 60 -
uspace/lib/display/include/types/display.h
r648e2ac r959b7ec 61 61 } display_wnd_cb_t; 62 62 63 typedef struct {64 kbd_event_t kbd_event;65 } display_wnd_ev_t;66 67 63 /** Display window */ 68 64 typedef struct { -
uspace/lib/display/meson.build
r648e2ac r959b7ec 30 30 src = files( 31 31 'src/display.c', 32 'src/disp_srv.c' 32 'src/disp_srv.c', 33 33 ) 34 35 test_src = files( 36 'test/display.c', 37 'test/main.c', 38 ) -
uspace/lib/display/src/disp_srv.c
r648e2ac r959b7ec 40 40 #include <io/log.h> 41 41 #include <ipc/display.h> 42 #include <mem.h> 42 43 #include <stdlib.h> 43 44 #include <stddef.h> … … 169 170 } 170 171 } 172 173 /* Hang up callback session */ 174 if (srv->client_sess != NULL) { 175 async_hangup(srv->client_sess); 176 srv->client_sess = NULL; 177 } 178 } 179 180 /** Initialize display server structure 181 * 182 * @param srv Display server structure to initialize 183 */ 184 void display_srv_initialize(display_srv_t *srv) 185 { 186 memset(srv, 0, sizeof(*srv)); 171 187 } 172 188 -
uspace/lib/display/src/display.c
r648e2ac r959b7ec 29 29 #include <async.h> 30 30 #include <display.h> 31 #include <display/event.h> 31 32 #include <errno.h> 32 33 #include <fibril_synch.h> … … 57 58 return ENOMEM; 58 59 60 fibril_mutex_initialize(&display->lock); 61 fibril_condvar_initialize(&display->cv); 59 62 list_initialize(&display->windows); 60 63 -
uspace/srv/hid/display/main.c
r648e2ac r959b7ec 156 156 157 157 /* Set up protocol structure */ 158 display_srv_initialize(&srv); 158 159 srv.ops = &display_srv_ops; 159 160 srv.arg = client;
Note:
See TracChangeset
for help on using the changeset viewer.