Changeset df747b9c in mainline for uspace/lib/libdrv/include/driver.h


Ignore:
Timestamp:
2010-04-23T11:30:25Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5af21c5
Parents:
a78fa2a
Message:

added device states (usable, invalid, not present, not initialized); add_device driver callback method returns integer (errno) instead of bool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libdrv/include/driver.h

    ra78fa2a rdf747b9c  
    109109typedef struct driver_ops {
    110110        /** Callback method for passing a new device to the device driver.*/
    111         bool (*add_device)(device_t *dev);
     111        int (*add_device)(device_t *dev);
    112112        // TODO add other generic driver operations
    113113} driver_ops_t;
     
    161161}
    162162
    163 bool child_device_register(device_t *child, device_t *parent);
     163int child_device_register(device_t *child, device_t *parent);
    164164
    165165
Note: See TracChangeset for help on using the changeset viewer.