Changes in uspace/srv/hid/output/output.c [6d5e378:ce3efa0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/output.c
r6d5e378 rce3efa0 82 82 int ret = EOK; 83 83 84 list_foreach(outdevs, link) { 85 outdev_t *dev = list_get_instance(link, outdev_t, link); 86 84 list_foreach(outdevs, link, outdev_t, dev) { 87 85 assert(dev->ops.yield); 88 86 … … 99 97 int ret = EOK; 100 98 101 list_foreach(outdevs, link) { 102 outdev_t *dev = list_get_instance(link, outdev_t, link); 103 99 list_foreach(outdevs, link, outdev_t, dev) { 104 100 assert(dev->ops.claim); 105 101 … … 117 113 sysarg_t rows = MAX_ROWS; 118 114 119 list_foreach(outdevs, link) { 120 outdev_t *dev = list_get_instance(link, outdev_t, link); 121 115 list_foreach(outdevs, link, outdev_t, dev) { 122 116 cols = min(cols, dev->cols); 123 117 rows = min(rows, dev->rows); … … 131 125 console_caps_t caps = 0; 132 126 133 list_foreach(outdevs, link) { 134 outdev_t *dev = list_get_instance(link, outdev_t, link); 135 127 list_foreach(outdevs, link, outdev_t, dev) { 136 128 assert(dev->ops.get_caps); 137 129 … … 145 137 { 146 138 frontbuf_t *frontbuf = NULL; 147 list_foreach(frontbufs, link) { 148 frontbuf_t *cur = list_get_instance(link, frontbuf_t, link); 139 list_foreach(frontbufs, link, frontbuf_t, cur) { 149 140 if (cur == (frontbuf_t *) handle) { 150 141 frontbuf = cur; … … 216 207 chargrid_get_cursor(buf, &col, &row); 217 208 218 list_foreach(outdevs, link) { 219 outdev_t *dev = list_get_instance(link, outdev_t, link); 220 209 list_foreach(outdevs, link, outdev_t, dev) { 221 210 assert(dev->ops.cursor_update); 222 211 … … 237 226 static void srv_set_style(ipc_callid_t iid, ipc_call_t *icall) 238 227 { 239 list_foreach(outdevs, link) { 240 outdev_t *dev = list_get_instance(link, outdev_t, link); 241 228 list_foreach(outdevs, link, outdev_t, dev) { 242 229 dev->attrs.type = CHAR_ATTR_STYLE; 243 230 dev->attrs.val.style = … … 250 237 static void srv_set_color(ipc_callid_t iid, ipc_call_t *icall) 251 238 { 252 list_foreach(outdevs, link) { 253 outdev_t *dev = list_get_instance(link, outdev_t, link); 254 239 list_foreach(outdevs, link, outdev_t, dev) { 255 240 dev->attrs.type = CHAR_ATTR_INDEX; 256 241 dev->attrs.val.index.bgcolor = … … 267 252 static void srv_set_rgb_color(ipc_callid_t iid, ipc_call_t *icall) 268 253 { 269 list_foreach(outdevs, link) { 270 outdev_t *dev = list_get_instance(link, outdev_t, link); 271 254 list_foreach(outdevs, link, outdev_t, dev) { 272 255 dev->attrs.type = CHAR_ATTR_RGB; 273 256 dev->attrs.val.rgb.bgcolor = IPC_GET_ARG1(*icall); … … 325 308 chargrid_t *buf = (chargrid_t *) frontbuf->data; 326 309 327 list_foreach(outdevs, link) { 328 outdev_t *dev = list_get_instance(link, outdev_t, link); 329 310 list_foreach(outdevs, link, outdev_t, dev) { 330 311 assert(dev->ops.char_update); 331 312 … … 374 355 chargrid_t *buf = (chargrid_t *) frontbuf->data; 375 356 376 list_foreach(outdevs, link) { 377 outdev_t *dev = list_get_instance(link, outdev_t, link); 378 357 list_foreach(outdevs, link, outdev_t, dev) { 379 358 assert(dev->ops.char_update); 380 359 … … 453 432 srv_set_rgb_color(callid, &call); 454 433 break; 455 456 434 case OUTPUT_UPDATE: 457 435 srv_update(callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.