Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/output.c

    rce3efa0 r6d5e378  
    8282        int ret = EOK;
    8383       
    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               
    8587                assert(dev->ops.yield);
    8688               
     
    9799        int ret = EOK;
    98100       
    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               
    100104                assert(dev->ops.claim);
    101105               
     
    113117        sysarg_t rows = MAX_ROWS;
    114118       
    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               
    116122                cols = min(cols, dev->cols);
    117123                rows = min(rows, dev->rows);
     
    125131        console_caps_t caps = 0;
    126132       
    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               
    128136                assert(dev->ops.get_caps);
    129137               
     
    137145{
    138146        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);
    140149                if (cur == (frontbuf_t *) handle) {
    141150                        frontbuf = cur;
     
    207216        chargrid_get_cursor(buf, &col, &row);
    208217       
    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               
    210221                assert(dev->ops.cursor_update);
    211222               
     
    226237static void srv_set_style(ipc_callid_t iid, ipc_call_t *icall)
    227238{
    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               
    229242                dev->attrs.type = CHAR_ATTR_STYLE;
    230243                dev->attrs.val.style =
     
    237250static void srv_set_color(ipc_callid_t iid, ipc_call_t *icall)
    238251{
    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               
    240255                dev->attrs.type = CHAR_ATTR_INDEX;
    241256                dev->attrs.val.index.bgcolor =
     
    252267static void srv_set_rgb_color(ipc_callid_t iid, ipc_call_t *icall)
    253268{
    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               
    255272                dev->attrs.type = CHAR_ATTR_RGB;
    256273                dev->attrs.val.rgb.bgcolor = IPC_GET_ARG1(*icall);
     
    308325        chargrid_t *buf = (chargrid_t *) frontbuf->data;
    309326       
    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               
    311330                assert(dev->ops.char_update);
    312331               
     
    355374        chargrid_t *buf = (chargrid_t *) frontbuf->data;
    356375       
    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               
    358379                assert(dev->ops.char_update);
    359380               
     
    432453                                srv_set_rgb_color(callid, &call);
    433454                                break;
     455                       
    434456                        case OUTPUT_UPDATE:
    435457                                srv_update(callid, &call);
Note: See TracChangeset for help on using the changeset viewer.