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