Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 56fd7cf in mainline for uspace/drv/test/test3/test3.c


Ignore:
Timestamp:
2012-08-17T11:37:03Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
1d5a540
Parents:
be2a38ad
Message:

Make ddf_dev_t and ddf_fun_t opaque. This further tighthens the DDF interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test/test3/test3.c

    rbe2a38ad r56fd7cf  
    133133
    134134        ddf_msg(LVL_DEBUG, "dev_add(name=\"%s\", handle=%d)",
    135             dev->name, (int) dev->handle);
     135            ddf_dev_get_name(dev), (int) ddf_dev_get_handle(dev));
    136136
    137137        test3 = ddf_dev_data_alloc(dev, sizeof(test3_t));
     
    155155static int test3_dev_remove(ddf_dev_t *dev)
    156156{
    157         test3_t *test3 = (test3_t *)dev->driver_data;
     157        test3_t *test3 = (test3_t *)ddf_dev_data_get(dev);
    158158        char *fun_name;
    159159        int rc;
Note: See TracChangeset for help on using the changeset viewer.